DEV Community

Niharika Pujari
Niharika Pujari

Posted on

Chessboard pattern problem

Chessboard problem:

Write a program that creates a string that represents an 8 x 8 grid. At each position of the grid there is either a space or # character. The characters should form a chessboard.

Alt Text

Solution:

Alt Text

Happy Coding!

Discussion (0)