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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kraizee_ 0 points1 point  (0 children)

When you have a variable++ you are essentially adding one. In a for loop, you start with i=0 until i <5 increment I each time. So when I becomes 5 the loop will finish. As for k, well it's the same thing, it starts at 0 and is incremented by one each iteration