009 - arithmatic operations
13
7
30
3.3333333333333
1
1000
print the value of first variable is = 10
11
12
11
10
26
<?php // 009 - arithmatic operations echo "</br><span class='myheading'>009 - arithmatic operations</span></br>"; $a = 10; $b = 3; $c = $a + $b; // additon echo $c ."</br>"; $c = $a - $b; // subtraction echo $c ."</br>"; $c = $a * $b; // Multiplicaiton echo $c ."</br>"; $c = $a / $b; // Division echo $c ."</br>"; $c = $a % $b; // Reminder echo $c ."</br>"; $c = $a ** $b; // Power echo $c ."</br>"; echo "print the value of first variable is = ". $a ."</br>"; $a++; // "post increment echo $a ."</br>"; ++$a; // pre increment echo $a ."</br>"; $a--; // post decrement echo $a ."</br>"; --$a; // pre decrement echo $a ."</br>"; $c = ($a + $b) * 2; // formula echo $c; echo "<br>"; ?>