+1 vote
in Class 12 by kratos

Write the output of the given code:

<?php

$sum=0;

for($a=1; $a<=8; $a +=2)

$sum = $sum + $a;

echo($sum);

echo("
");

echo($a);

?>

1 Answer

+1 vote
by kratos
 
Best answer

The output is:

16

9

...