/* program to display a matrix of any order*/
/* it is not for the experts*/
#include
#include
void main()
{ clrscr();
int i,j,n,a[20][20],m;
cout<<"get the order"<<"\n";
cin>>n;
cout<<"get the order"<<"\n";
cin>>m;
cout<<"get matrix elements"<<"\n";
{for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
cin>>a[i][j];
}
}
{for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
cout<<"\t"<cout<<"\n";
} getch();
}
}
if u have a better solution,
post ur solution as comments...
special thanks to ....... Mr.J.Mannickaraj BE(for his valuable support)
Labels
- group discussion (1)