Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n = 3, m = 4;
- int mat[n + 3][m] =
- {
- {1, 1, 0, 0},
- {0, 1, 0, 0},
- {0, 1, 0, 0},
- {0, 1, 0, 0}
- };
- for (int i = 0; i < n; i++){
- for (int j = 0; j < m; j++)
- cout << mat[i][m - j - 1] << ' ';
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement