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

For Loops in PHP Forum

View Course

124 points
560163d63e0ec88353000424_595324586
Submitted by
Vishant Dhiman
almost 2 years ago

fix the compiler

I am writing code of "for loop" in the compiler but it showed me "The program took too long to finish. Check your code for infinite loops and try again" plz suggest a solution for this problem.


0 votes

permalink

just click ok on the error, finish typing your code, select all your code, copy the code, refresh the page, paste the code submit.

when you are typing the code if you don't immediately close your loops it will error out. the other solution is to type for (conditions) { } and then move the cursor between the curly braces and finish typing the code.

426 points
9a74e1277d8e32358137a88e715f067c?s=140&d=retro
Submitted by
Bret Wagner
over 1 year ago