DEV Community

loading...

Chessboard pattern problem

niharikapujari profile image Niharika Pujari ・1 min read

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)

pic
Editor guide