#include<iostream>
#define size 16
using namespace std;
int main()
{
int m,n;
int a[size][size];
cout<<"Enter the no of rows"<<endl;
cin>>m;
cout<<"Enter the no of columns"<<endl;
cin>>n;
cout<<"enter the elements in table"<<endl;
for(int i=0;i<m;i++)
{
for(int j=0;j<n;j++)
{
cin>>a[i][j];
}
}
for(int i=0;i<m;i++)
for(int j=0;j<n;j++)
{
cout<<a[i][j]<<endl;
}
return 0;
}
No comments:
Post a Comment