+3 votes
in Class 12 by kratos

Write the output of the given code:

<? php

$sum=0;

for($x=1; $x<=5; $x +=1)

$sum = $sum + $x;

echo($sum);

echo(“
”);

echo($x);

?>

1 Answer

+1 vote
by kratos
 
Best answer

The output is:

15

5

...