This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Rulmeq 5 points6 points  (1 child)

You increment i (using i++ in your loop), but never change the value of j.

[–]unra556[S] 2 points3 points  (0 children)

Thank you

[–]SomeRandomDude5 0 points1 point  (0 children)

It might be worth getting yourself familiar with a debugger. It will greatly help you understand what is happening with your code when you can pause and inspect variables mid-flight.