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 chessboard. Using
Input Specification
The input will be two integers, the width
Output Specification
Output a checkerboard pattern with a width of
Sample Input 1
Copy
5
3
Sample Output 1
Copy
01010
10101
01010
Sample Input 2
Copy
6
4
Sample Output 2
Copy
010101
101010
010101
101010
Comments