+ 2

<?php $sum =0 ; for(i=0;i<=30;i++) { if(i%9==0) $sum=$sum+i; } echo"\n sum is \n ",$sum; ?>

Solve this problem đŸ€”đŸ˜Ą https://code.sololearn.com/wQTCMvUWtSAF/?ref=app https://code.sololearn.com/wQTCMvUWtSAF/?ref=app

23rd Sep 2020, 4:40 AM
Jeeshan Momin
Jeeshan Momin - avatar
3 RĂ©ponses
+ 4
Try now you forget $ in loop <?php $sum =0; for($i=0;$i<30;$i++) { if($i%9==0) $sum+=$sum+$i; } echo("sum is =$sum"); ?>
23rd Sep 2020, 5:01 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
Jeeshan Momin welcome sir
23rd Sep 2020, 5:36 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Thanks alot🎉😅
23rd Sep 2020, 5:34 AM
Jeeshan Momin
Jeeshan Momin - avatar