This forum is now read-only. Please use our new forums at discuss.codecademy.com.

For Loops in PHP Forum

View Course » View Exercise

504 points
6b7868453711648e9f4fdf44f13f2fca?s=140&d=retro
Submitted by
manishgupta34
over 2 years ago

whats wrong in this code

Solo For Loop!



<?php
// Write your for loop below!

for ($i = 0; $i < 101; $i = $i + 10)
{echo $i;
}

  ?>
</p>

0 votes

permalink

Hmmm looking at your code nothing seems wrong? it should be working just fine. I have pasted your code below copy this and see if it will work:

    <?php
    // Write your for loop below!
    for ($i = 0; $i < 101; $i = $i + 10)
    {
      echo $i;
    }
   ?>

If this doesn't help solve your issue try clearing out your cache and cookies and reload your browser or try another browser. Hope this helps.

1216 points
55b6a9ad9113cb0a860003a0_218435195
Submitted by
Brian
over 2 years ago