Showing posts with label WAP to create double dimension array of 2x3 matrix and display its Elements. Show all posts
Showing posts with label WAP to create double dimension array of 2x3 matrix and display its Elements. Show all posts

MATRIX 2 X 3

WAP to create double dimension array of 2x3 matrix and display its Elements


void main ()

{

int a[2][3],i,j;

clrscr ();

for (i=0;i<2;i++)

{

for (j=0;j<3;j++)

{

printf ("\nEnter element: ");

scanf ("%d",&a[i][j]);

}

}

for (i=0;i<2;i++)

{

for (j=0;j<3;j++)

{

printf ("%d\t",a[i][j]);

}

printf ("\n");

}

getch ();

}




Labels