- In arithmetic operation we are use a four operator
—>SUBTRACT (-)
—>PRODUCT(*)
—>DIVIDE (/)
- Here we are see a perform all operation.
Example:-
<?php
$number1=1009;
$number2=2003;
echo”ADD<br>”;
echo $number1+$number2 .'<br>’;
echo”SUBTRACT<br>”;
echo $number1-$number2.'<br>’;
echo”PRODUCT<br>”;
echo $number1*$number2.'<br>’;
echo”DIVIDE<br>”;
echo $number1/$number2.'<br>’;
?>
OUTPUT:-
ADD
3012
SUBTRACT
-994
PRODUCT
2021027
DIVIDE
0.50374438342486
0 Comments:
Post a Comment