You must log in to comment.

in reply to @lexi's post:

this is the kind of coding that gets your 101 teacher to ask you “if i give you extra credit for these array assignments will you stop solving them in the most mind bending way possible”

that is the point lol. only 0 is considered to be false in most languages, so:

i=0; i - 5 == -5; -5 == true // continue iterating
...
i=4; i - 5 == -1; -1 == true // continue iterating
i=5; i - 5 == 0; 0 == false // stop iterating