[ create a new paste ] login | about

Link: http://codepad.org/XNStPbeV    [ raw code | output | fork ]

PHP, pasted on Sep 27:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
$i = 0;
$v = 8138;  // value : 8138

$bid  = round($v / 10);      // output : $814
$ftax = $v + $bid;
$stax = round($ftax / 20);  // output : tax $448
$pay  = $v + $bid + $stax;   // 8138 + 814 + 448 = 9400
echo "Value $" . number_format($v) . " bid $" . number_format($bid) . " tax $" .      number_format($stax) . " You Pay $" . number_format($pay) . "<br />";
$v = round($v * 1.1);

?>


Output:
1
Value $8,138 bid $814 tax $448 You Pay $9,400<br />


Create a new paste based on this one


Comments: