C program to find transpose of a matrix

C program to find transpose of a matrix

Output:

Enter the elements of matrix:
1 2 3
4 5 6
7 8 9
The original matrix is:
1 2 3
4 5 6
7 8 9
The Transpose of matrix is:
1 4 7
2 5 8
3 6 9

Implementation: