0
3.4kviews
Write a program in C to read and display elements of a square (2D) matrix and check whether the entered matrix is symmetric or not.
1 Answer
0
133views

Program:

#include<stdio.h>
#include<conio.h>
int main() {
int a[10][10], i, j, m, n, r=1;
printf("Enter the order of matrix:");
scanf("%d%d",&m,&n);
printf("Enter the elements of matrix\n");
for ( i = 0 ; i < m ; i++ )
for ( j = 0 ; j < n ; j++ )
scanf("%d",&a[i][j]);
for( …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.