Here's the code:
----------------------------------------------------------
$XXX = 500; //value can be input numerous ways
$A = $XXX - (($XXX * 0.034)+0.3);
$B = $A - ($A * 0.1);
$C = $B* 1.1;
$D = $C - (($C* 0.025) + 5);
$E = $D * 7827;
echo number_format($E);
// show your answer in this formate show 688,413
?>
----------------------------------------------------------
* originally helped by,
catbertnc and Mohd.SAQIB Q.. Thanks Guys!!
Now further question:
What's the input syntax, so i will have a box,
like a search box, where i can key in various input numbers.
And when i click "calculate" it will echoes E.
What i mean is to have a web page, with an input box and calculate button.
And when pressed will automatically shows the result.
Thank you verryyy much.. :D
2007-12-14
19:27:51
·
3 answers
·
asked by
Le Buane
2
in
Programming & Design