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