Home 14: For loops exercise - Draw a checkerboard
Content
Cancel

14: For loops exercise - Draw a checkerboard

Draw a checkerboard with loops.

You can use the modulo-operator (%) to help you find out if your number is even or not. A modulo-operator works like a division, but returns the rest of the division instead.

This post is licensed under CC BY 4.0 by the author.