Write A Program to read the order of matrix and read elements into 2 dimentional array and display the elements in matrix format
#include<stdio.h> #include<conio.h> void main ( ) { int x[10][10],i,j,m,n; clrscr ( ); printf (“enter order of m...
https://www.computersprofessor.com/2016/06/write-program-to-read-order-of-matrix.html
#include<stdio.h>
#include<conio.h>
void main ( )
{
int x[10][10],i,j,m,n;
clrscr ( );
printf (“enter order of matrix”);
scanf ("%d%d”,&n,&m);
for ( i =0; < n; i++)
{
for (j =0; j < m, j++)
{
scanf ("%d",&x[i][j]);
}
}
printf("\n Elements in the matrix are");
for ( i =0; i < n; i++)
{
for (j=0; j < m; j++)
{
printf (“\t %d”, x[i][j]);
}
printf (“\n”);
}
getch ( );
}