T
23

My first program ran for 3 hours before I realized it was stuck in a loop

I was trying to print numbers from 1 to 100, but I messed up the condition and it just kept going. I only noticed when my laptop fan started sounding like a jet engine. Has anyone else had a simple typo cause a meltdown?
3 comments

Log in to join the discussion

Log In
3 Comments
grant.kevin
Ever accidentally coded a space heater? My first infinite loop cooked an egg.
8
the_val
the_val1mo ago
Remember to check your loop conditions first.
6
veraramirez
Printed a test pattern first, saved me hours of debugging later.
3