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