#include<stdio.h>
#include<conio.h>
int main()
{
int a[3][3],i,j;
printf("\n enter the element");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d \n",&a[i][j]);
}
}
printf("The matrix is as follows:%d \n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("\t %d",a[i][j]);
}
printf("\n");
}
getch();
return 0;
}
output 0 1 2
3 4 5
6 7 8
please give a title for the prgrm and give the output olso
ReplyDelete