What other output did you expect?
Maybe it helps you to tell us (in English) what the modulo operator returns and how that relates to a number being evenly divisible.
In reply to Re: why is my for loop using modulo giving me a weird output
by Corion
in thread why is my for loop using modulo giving me a weird output
by perlynewby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |