Advertisement
STANAANDREY

intoarce pe dos

Nov 20th, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. int n = 3, m = 4;
  2.     int mat[n + 3][m] =
  3.     {
  4.         {1, 1, 0, 0},
  5.         {0, 1, 0, 0},
  6.         {0, 1, 0, 0},
  7.         {0, 1, 0, 0}
  8.     };
  9.  
  10.     for (int i = 0; i < n; i++){
  11.         for (int j = 0; j < m; j++)
  12.             cout << mat[i][m - j - 1] << ' ';
  13.             cout << endl;
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement