Check if the matrix is symmetric
Submit solution
C
Points:
10
Time limit:
8.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Problem Statement
Given a 2D matrix, check if the matrix is symmetric. Obtain the size of matrix (number of rows and columns of the matrix)and the matrix elements as input from the user. If it is symmetric display "The Matrix is a Symmetric matrix", otherwise display "The Matrix is not a Symmetric matrix"
Sample Input
3
3
1 5 3 5 1 8 3 8 3
Sample Output
The Matrix is a Symmetric matrix
Comments
X