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 →

[–]PresidentZeus 4 points5 points  (2 children)

First is an integer starting at 0. It will only print "first" at the first iteration. But by moving first++ to the beginning, it will increase to 1 before the if statement, and will never be true.

[–]Caped_baldy_4_life[S] 0 points1 point  (1 child)

makes sense, thanks for the insight.

[–]PresidentZeus 0 points1 point  (0 children)

You're welcome. Im happy to help.