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?
2 comments

Log in to join the discussion

Log In
2 Comments
grant.kevin
Ever accidentally coded a space heater? My first infinite loop cooked an egg.
8
the_val
the_val3d ago
Remember to check your loop conditions first.
6