<?php $num1 = 10; $num2 = 5; $sub = $num1 + $num2; $mu1 = $num1 - $num2; $div = $num1 * $num2; $mod = $num1 / $num2; echo " the sum of $num1 and $num2 is: $sum" ; echo " the subtraction of $num1 and $num2 is: $sub" ; echo " the multiplication of $num1 and $num2 is: $mu1" ; echo " the division of $num1 and $num2 is: $div" ; echo " the modulus of $num1 and $num2 is: $mod" ; ?>
To embed this project on your website, copy the following code and paste it into your website's HTML: