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...

#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 ( );
}

Related

C Programs 7164928841150829502

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item