Sunday, November 28, 2010

Write a program to print the values in a matrix table

#include

#include

main()

{

int a[10][10],i,j,r,c;

printf("Enter order or matrix:");

scanf("%d%d", &r,&c);

printf("Enter %d values ", r*c);

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

printf("\n Element of array a: ");

for(i=0;i
{

printf("\n");

for(j=0;j
{

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

}

}

getch();

}