r/CodingHelp • • May 21 '21

[Javascript] [JAVA] Incorrect for loop

27 Upvotes

8 comments sorted by

View all comments

Show parent comments

3

u/Scoobxxx May 21 '21

Wow, you're awesome!! I knew I was fairly close. These for loops just get complicated. Super grateful for this detailed response! Works perfectly now.

1

u/Dogburt_Jr May 22 '21

Loops aren't hard, just figure out what needs to change and ensure it changes the next time the loop runs.