Draw a checkerboard (8 by 8 squares) out of vertical lines and underscores. You must use two nested for loops, and the for loops should each execute 8 times, e.g.
for (int x = 0; x < 8; x++)
{
for (int y = 0; y < 8; y++)
{
// print out one square of the checkerboard
}
}
for (int x = 0; x < 8; x++)
{
for (int y = 0; y < 8; y++)
{
// print out one square of the checkerboard
}
}
Comment