-
What will be the output of the following PHP code ?
<?php
function Calculate($p,$q)
{
echo ($p + $q);
echo "\n";
echo ($p - $q);
echo "\n";
echo ($p * $q);
echo "\n";
echo ($p / $q);
echo "\n";
echo ($p % $q);
}
Calculate(20,16);
?>
-
- 36
4
320
1.25
4 - 4
320
1.25
4 - 320
1.25
4
4
36 - Error
- None of these
- 36
Correct Option: A
Simple usage of all arithmetic operators.