Guest User

Untitled

a guest
Oct 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // create the grid
  2. for (r=0; r<row; r++)
  3. for (c=0; c<col; c++)
  4. {
  5. grid[r][c] = (r + 1)*(c + 1);
  6. }
  7. // print the grid
  8. for (r = 0; r < row; r++)
  9. {
  10. for(c = 0; c < col; c++)
  11. cout << grid[r][c] << "\t";
  12.  
  13. cout << endl;
  14. }
Add Comment
Please, Sign In to add comment