Rahma has been getting really rusty at chess, so when some others asked to verse her online, she decided to make a program to play chess for her instead. Although, she’s also rusty at programming, so she’ll only be simulating the chess board. Using ’s and ’s for black and white. Although, she also forget the size of the chess board, so she needs to make a program that generalizes all chess board sizes, given any positive integer for the height and width.
The input will be two integers, the width and the height .
Output a checkerboard pattern with a width of and a height of . Let the top left square be a .
Sample Input 1
Sample Output 1
01010 10101 01010
Sample Input 2
Sample Output 2
010101 101010 010101 101010