Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int arr2d [2][3];
- int i,j;
- for (i=0;i<2;++i)
- {
- for(j=0;j<3;++j)
- {
- cout<<"arr2d["<<i<<"]["<<j<<"]"<<" = ";
- cin>>arr2d[i][j];
- }
- }
- for (i=0;i<2;++i)
- {
- for (j=0;j<3;++j)
- {
- cout<<" arr2d["<<i<<"]["<<j<<"]"<<" = "<<arr2d[i][j]<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement