creating a grod
Hi. I want to try storing a representation of a grid and displaying it on screen.Program should read a grid, store it in a 2D data structure and then output it on screen. BLACK cells represented by 1 WHITE cell represented by 0. INPUT : first line of input consists of two integers (r) and (c) separated by a single space. These are number of rows and columns of the grid. (r) rows of input follows , each containing c characters separated by single space, which specify the colour of the call at that position. OUTPUT : output representation of a board l, using 1 for black and 0 for white cells. There should be no spaces between cells. E.g. Sample input of a user: 5 5 //first line for (r) and (c) 0 0 0 0 0 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 Sample output: 00000 10010 11100 00000 00000 without spacing. Please help if possible.