Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- const int N = 110;
- int A[N][N];
- int main()
- {
- int n, m;
- scanf("%d%d", &n, &m);
- for (int i = 1; i <= n; ++i) {
- for (int j = 1; j <= m; ++j)
- scanf("%d", &A[i][j]);
- }
- for (int j = 1; j <= m; ++j) {
- for (int i = n; i >= 1; --i) {
- if (i != n) printf(" ");
- printf("%d", A[i][j]);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement