#include<stdio.h>
#include<conio.h>
void main()
{
int a[3][3],i,j;
clrscr();
printf("\n Enter the values for 3/3 Matrix:");
for(i=0;i<3;i++)
for(j=0;j<3;j++)
{
scanf("%d",&a[i][j]);
}
printf("\n The 3/3 Matrix is: \n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf(" %d",a[i][j]);
}
printf("\n");
}
printf("\n the transpose of 3/3 Matrix: \n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
printf(" %d",a[j][i]);
}
printf("\n");
}
getch();
}
1 comments: (+add yours?)
Awesome
Post a Comment