🎙️
12

I kept getting stuck on a simple loop exercise for two days.

The problem was printing numbers 1 to 10, but mine kept stopping at 9. I finally realized my condition was 'i < 10' instead of 'i <= 10'. Has anyone else tripped up on something that simple when starting out?
3 comments

Log in to join the discussion

Log In
3 Comments
dakota_patel98
My friend did that same thing last week.
1
reese124
reese1241mo ago
That reminds me of when my cousin tried something similar and it totally backfired.
3
scott.jana
scott.jana1mo ago
Wait, it took two whole DAYS to spot that?
1