Check if the matrix is symmetric


Submit solution

Points: 10
Time limit: 8.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C

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


  • 0
    mukesher4  commented on Dec. 21, 2023, 12:33 p.m.

    X