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

For Loops in PHP Forum

View Course » View Exercise

405 points
B9b4af7d293f8c94db1d696f5a21fc1e?s=140&d=retro
Submitted by
D. Philpot
almost 4 years ago

SOLUTION!!

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

permalink

This is f@%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
A56a06c653e7e5f460079fa62fabf80a?s=140&d=retro
Submitted by
clive_dexxyahoo.com_523e2b9680ff338a
almost 4 years ago

1 Comment

A5ba1285e8142aa3740cc08378e41d6c?s=140&d=retro Reianna-Bryant almost 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

permalink

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
51d2d1f77c82cad4fd00b8cb_769013439
Submitted by
Caleb
almost 4 years ago

3 Comments

52605615f10c605228002abc_770166181 Rich Girou over 3 years ago

It worked for me also. Using firefox.

51d2d1f77c82cad4fd00b8cb_769013439 Caleb over 3 years ago

I was using Firefox!

Picture garrettwebster over 3 years ago

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


0 votes

permalink

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
907c6f0793276e4e7b9e24b018806138?s=140&d=retro
Submitted by
j94
almost 4 years ago