The modulus operator
gives the remainder when one number
is divided by another.
i % 2 gives
is even and
i is odd.
Change the code so that the stripes are vertical.
Change the code so that the stripes are at 0, 4 and 8.
The grid shown has red if either i or j is an even number.
Produce the checker board pattern shown.
Trailing diagonal stripes
Now we are just playing, stop this and move onto something