fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int arr[2][2];
  6.  
  7. for(int i = 0; i < 2; i++){
  8. for(int j = 0; j < 2; j++){
  9. cin >> arr[i][j];
  10. }
  11. }
  12.  
  13. for(int i = 0; i < 2; i++){
  14. for(int j = 0; j < 2; j++){
  15. cout << arr[i][j] << " ";
  16. }
  17. cout << endl;
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5296KB
stdin
1 2
1 2
stdout
1 2 
1 2