Facebook
From sidratul, 1 Month ago, written in C++.
This paste is a reply to array 2d from sidratul - go back
Embed
Viewing differences between array 2d and Re: array 2d
#include
#include
#include<iostream>
#include<string.h>
using namespace std;
int main(){

string a[3][3];

 for(int i=0; i<3; i<3; i++)
 {
     for(int j=0;j<3;j++)
j=0;j<3;j++)
     {
         cout<<"Enter cout<<"Enter the Elements: ";
         cin>>a[i][j];
";
         cin>>a[i][j];
     }
     cout<
cout<<endl;

 }
for(int i=0; i<3; i<3; i++)
 {
     for(int j=0;j<3;j++)
j=0;j<3;j++)
     {
         cout<<"Element: a["< cout<<"Element: a["<<i<<"]["<<j<<"]: "<<a[i][j]<<endl;
     }
     cout< cout<<endl;
 }
return 0;
}