Symmetric matrix in C
C program to check if a matrix is symmetric or not: First we find transpose of a matrix and then compare it with the original matrix. For a symmetric matrix AT = A.
#include<conio.h>
main()
{
int m, n, c, d, matrix[10][10], transpose[10][10];
printf("Enter the number of rows and columns of matrix\n");
scanf("%d%d",&m,&n);
printf("Enter the elements of matrix\n");
for ( c = 0 ; c < m ; c++ )
for ( d = 0 ; d < n ; d++ )
scanf("%d",&matrix[c][d]);
for( c = 0 ; c < m ; c++ )
{