WAP TO
PRINT
A MATRIX .......
this page blog creater by programer boy shubham for making programing its easy to learn...
#include<stdio.h>
#include<conio.h>
void
main()
{
clrscr();
int
mat[3][3],i,j;
printf("enter
the element of array");
for(i=0;i<3;i++);
{
for(j=0;j<3;j++);
{
scanf("%d",&mat[i][j]);
}
}
printf("display
the matrix");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf("%d",mat[i][j]);
}
printf("\n");
}
getch();
}
Out
put—
Enter
the element to print matrix
1
2
3
4
5
6
7
8
9
Matrix
is this—
1 2 3
4 5 6
7 8 9
Blogger— PROGRAMER BOY SHUBHAM
EMAIL—shubhampandey556@gmail.com

No comments:
Post a Comment