muhtalhakhan / Hacktoberfest2023

Hacktoberfest 2023 🧑🏻‍💻 OPEN FIRST Pull Request 🎉
https://www.hacktoberfest.com
GNU General Public License v3.0
13 stars 87 forks source link

Added code for checking symmetric matrix in cpp #107

Closed shraddha2803 closed 1 year ago

shraddha2803 commented 1 year ago

The provided code checks whether a given matrix is symmetric. It does this by comparing each element in the matrix with its corresponding element in the transposed version of the matrix. If all elements match their symmetric counterparts, the matrix is considered symmetric, and the code returns "The matrix is symmetric." Otherwise, it returns "The matrix is not symmetric."

82