Bassel_11

Untitled

Aug 24th, 2022
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.  
  7. int n,m;
  8. cin>>n>>m;
  9. long long arr[n][m];
  10.  
  11. for (int i=0; i<n; i++) {
  12. for (int j=0; j<m; j++) {
  13. cin>>arr[i][j];
  14. }
  15. }
  16.  
  17. for (int i=0; i<m; i++) {
  18. for (int j=n-1; j>=0; j--) {
  19. cout<<arr[i][j]<<" ";
  20. }
  21. cout<<endl;
  22. }
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment