Chess Board
Given two numbers n and m. Create a two-dimensional array of size (n×m)and populate it with the characters "."
and "*"
in a checkerboard pattern. The top left corner should have the character "."
above figure shows the main chess board pattern, note that "." means white and "*" means black
No comments:
Post a Comment