Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow
Lab Exercise
28. Write a program to find the transpose of a given matrix & check whether it is symmetric or not.
Sample Input and Output
Stdin Inputs:
3 3 1 2 3 2 3 1 3 1 2
Sample Result:
Input no of rows: 3
Input no of columns: 3
***Input matrix***
Input element 1, 1: 1
Input element 1, 2: 2
Input element 1, 3: 3
Input element 2, 1: 2
Input element 2, 2: 3
Input element 2, 3: 1
Input element 3, 1: 3
Input element 3, 2: 1
Input element 3, 3: 2
***Matrix***
1 2 3
2 3 1
3 1 2
***Transpose Matrix***
1 2 3
2 3 1
3 1 2
Matrix is symmetric.