<?
function Cal( $killo , $percent , $Price ){
$k = ($Price - ($Price * $percent)/100)*$killo;
return $k;
}
$m = Cal(5,0,8000)+Cal(2,0,5000)+Cal(3,0,4000);
$n = Cal(5,9,8000)+Cal(2,6,5000)+Cal(3,4,4000);
echo $m."</P>";
echo "<P>".$n."</P>";
echo "<P>".($m - $n)."</P>";
?>
|