Write a C++ program program that asks the user for two numbers x and y, and draws a grid of zeros and ones with x rows and y columns using ‘character graphics’. A sample run: 6 Enter the number of rows: 3 Enter the number of columns: 101010 010101 101010 Another sample run: 3 Enter the number of rows: 3 Enter the number of columns: 101 010 101 Hint: if your nested loops have index variables, i and j, then what does: cout << ((i+j+1):2) do? Show transcribed image text Write a C++ program program that asks the user for two numbers x and y, and draws a grid of zeros and ones with x rows and y columns using ‘character graphics’. A sample run: 6 Enter the number of rows: 3 Enter the number of columns: 101010 010101 101010 Another sample run: 3 Enter the number of rows: 3 Enter the number of columns: 101 010 101 Hint: if your nested loops have index variables, i and j, then what does: cout
Expert Answer
Answer to Write a C++ program program that asks the user for two numbers x and y, and draws a grid of zeros and ones with x rows a…