/*PROGRAM TO FIND THE TRANSPOSE OF A MATRIX*/

 

#include<stdio.h>

#include<conio.h>

void main()

{

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

clrscr();

 

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

{

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

{

printf(“Enter a%d%d= “,i,j);

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

}

}

 

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

{

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

{

b[j][i]=a[i][j];

}

}

 

printf(“\n THE TRANSPOSE OF MATRIX \n”);

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

{

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

{

printf(“\tb%d%d=%d”,i,j,b[i][j]);

}

printf(“\n”);

}

getch();

}

163 total views, 2 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.