Introduction
In this lab, we will learn how to check whether a square matrix is symmetric or not using the C programming language. A square matrix is said to be symmetric if it's equal to it's transpose. We will find the transpose of the matrix and compare it with the original matrix to check its symmetry.
Note: You need to create the file
~/project/main.c
yourself to practice coding and learn how to compile and run it using gcc.
cd ~/project
## create main.c
touch main.c
## compile main.c
gcc main.c -o main
## run main
./main