C Program to check matrix is magic square or not

A magic square is a square matrix in which the sum of every row, every column, and both main diagonals is the same number (called the magic constant). This C program reads a square matrix and checks whether it is a magic square. Example: 8 1 6 3 5 7 4 9 2 Every row, …