+ 1
How the output of this code is 16 and 9?
<?php $sum=0; for($a=1; $a<=8; $a +=2) $sum = $sum + $a; echo($sum); echo("<BR>"); echo($a); ?>
1 Answer
0
16
9
<?php $sum=0; for($a=1; $a<=8; $a +=2) $sum = $sum + $a; echo($sum); echo("<BR>"); echo($a); ?>