Advertisement
homeworkhelp111

Q2

Mar 15th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int arr[4][3];
  7.  
  8.     for (int i = 0; i < 4; i++) {
  9.         for (int j = 0; j < 3; j++) {
  10.             cin >> arr[i][j];
  11.         }
  12.     }
  13.     for (int i = 3; i >= 0; i--) {
  14.         for (int j = 2; j >= 0; j--) {
  15.             cout << arr[i][j] << " ";
  16.         }
  17.         cout << endl;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement