Transpose of a matrix, Arrays, C Language Assignment Help

Assignment Help: >> Memory map of the two dimensional Arrays >> Transpose of a matrix, Arrays, C Language

Write a program to read the elements from the keyboard and print the transpose of the matrix.

#include< stdio.h>

main( )

{

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

clrscr( );

printf("Enter Elements of Matrix of A:\n");

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

{

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

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

}

printf("\n Matrix Transpose\n");

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

{

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

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

                                printf("\n");

}

getch();

}

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd