C Program to find Transpose of a Matrix

This is the C program to find the transpose of a matrix.
A matrix which is formed by turning all the rows of a given matrix into columns and vice-versa.

[cc lang=”c”]
#include
void main()
{
int a[10][10],b[10][10],i,j,r,c;
printf(“Enter the no. of rows for Matrix :”);
scanf(“%d”,&r);
printf(“Enter the no. of columns for Matrix :”);
scanf(“%d”,&c);
/* * * * * READ MATRIX * * * * */
printf(“nnNow enter the Matrix A[%d][%d] :-nn”,r,c);
for(i=0;i

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *