+ 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); ?>

23rd Feb 2018, 4:29 AM
Ashish roy
Ashish roy - avatar
1 Réponse
0
16 9
25th Feb 2018, 2:49 PM
Thilagavathy R