Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int arr2d [2][3];
  8.     int i,j;
  9.     for (i=0;i<2;++i)
  10.     {
  11.         for(j=0;j<3;++j)
  12.         {
  13.             cout<<"arr2d["<<i<<"]["<<j<<"]"<<" = ";
  14.             cin>>arr2d[i][j];
  15.    
  16.         }
  17.     }
  18. for (i=0;i<2;++i)
  19. {
  20.     for (j=0;j<3;++j)
  21.     {
  22.          cout<<" arr2d["<<i<<"]["<<j<<"]"<<" = "<<arr2d[i][j]<<endl;
  23.        
  24.     }
  25. }
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement