/*PROGRAM TO CHECK WHETHER A MATRIX IS SKEW SYMMETRIC OR NOT */

 

#include<stdio.h>

#include<conio.h>

void main()

{

int a[3][3],b[3][3],i,j;

clrscr();

 

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

printf(“\nEnter a%d%d= “,i,j);

scanf(“%d”,&a[i][j]);

}

}

 

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

if(a[i][j]==-a[j][i])

continue;

else

{

printf(“Matrix is not skew symmetric”);

getch();

exit(0);

}

}

}

printf(“\nThe Matrix is Skew Symmetric”);

getch();

}

245 total views, 2 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.