Thursday, August 27, 2009

Write Program In C++to Read Matrix Of M*n From Keyboard &display The Same On Screen?

#include
#include
void main()
{
int a[10][10],m,n,i,j;
clrscr();
printf("Enter the number of rows in the matrix:");
scanf("%d",&m);
printf("Enter the number of columns in the matrix:");
scanf("%d",&n);
for(i=0;ifor(j=0;jscanf("%d",&a[i][j]);
printf("The matrix is as follows");
for(i=0;i{

for(j=0;jprintf("/n");
}
getch();
}