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 In3 Comments
dakota_patel981mo ago
My friend did that same thing last week.
1
reese1241mo ago
That reminds me of when my cousin tried something similar and it totally backfired.
3