Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create the grid
- for (r=0; r<row; r++)
- for (c=0; c<col; c++)
- {
- grid[r][c] = (r + 1)*(c + 1);
- }
- // print the grid
- for (r = 0; r < row; r++)
- {
- for(c = 0; c < col; c++)
- cout << grid[r][c] << "\t";
- cout << endl;
- }
Add Comment
Please, Sign In to add comment