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