
Arrays 221
{
in t i, j,rcw,col,a[10] [10];
clrscrO ;
printf ("\tt Enter Order of matrix up to(10x 10) A:");
scanf (“%d %d",&row,txcol};
printf ("\Enter Elements of matrix A :\ ft");
for (i=0,i<rowrf++)
for (j=0,mj<col,j++)
scanf ("%d",&a[i][j]);
printf ("\n The Matrix is: \n");
for (i=$,'i<row,'i++)
I
for (j=0,j<col,-j++)
printf C%6d",a[i][fl);
printf ("\n");
}
QUTPUX:
Enter Order of matrix up to (10 x 10) A : 3 3
Enter Elements of matrix A :
3 5 8
4 8 5
8 5 4
The Matrix is:
3 5 8
4 8 5
8 5 4
Explanation In the above program the order of the matrix is entered. The order of the matrix should
be up to 10 x 10. For the sake of understanding we hav ...