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

For Loops in PHP Forum

View Course » View Exercise

405 points
Submitted by
D. Philpot
over 4 years ago


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

This is my code, exactly what Codecademy helped us learn. What i had to do to get it to pass was copy my code, leave the space after "// write for loop below" blank, press save and submit (blank), refresh my page, paste my (above) code, press save and submit! done

1 vote


This is [email protected]%ked up! I've tried all the different ways to get around this bug, but it will not pass me. It wouldn't be so bad, but now when I come back to the site it keeps taking me to this exercise and I have to navigate to the actual place I left off. So frustrating.

167 points
Submitted by
over 4 years ago

1 Comment

A5ba1285e8142aa3740cc08378e41d6c?s=140&d=retro Reianna-Bryant over 2 years ago

I agree. I am having the same problem right now. I honestly think that Code Academy needs to look and check this exercise for some programming issues.

1 vote


I tried that but all I got was an error message saying:"Oops!Try Again"Follow the instructions on the full preview page to test your code.

538 points
Submitted by
over 4 years ago


52605615f10c605228002abc_770166181 Rich Girou over 4 years ago

It worked for me also. Using firefox.

51d2d1f77c82cad4fd00b8cb_769013439 Caleb over 4 years ago

I was using Firefox!

Picture garrettwebster over 4 years ago

click on the view preview... sometimes that would happen to me

0 votes


I had the exact same issue (in my case, I was just taking too long to type out my code & a window popped up that said "The program took too long to finish. Check your code for infinite loops and try again"). As previous poster stated, all one needs to do is copy their code (assuming their code is written correctly), refresh the page, paste their code in the refreshed page, then click submit.

175 points
Submitted by
over 4 years ago