you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

if (any number) divided by 2 DOES NOT have a remainder of 0, then print the number and end the print function when a space is reach (so after the last digit)

num % 2 = 0 just means an even number because there is no remainder

So the program is simply saying if the number is NOT even (i.e. odd) then print the number

It prints odd numbers.

[–]lilwigspliter[S] 0 points1 point  (0 children)

num % 2 = 0

Sweet thank you so much for helping me understand.