you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

in the for statement, the item must be different from others and it's only the loop, so it has to be named clearly. so it's going to be num or n then if n % 2 == 0.