Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
273 B
1
Indexable
Never
int x,y;
 for (i = 0; i < m; i++) {
      for( j = 0; j < n; j++) {
         if (mat[i][j] != mat[j][i])
            x = 1;
         else if (mat[i][j] == -mat[j][i])
            y = 1;
      }
   }
   if (y == 1)
      printf("The matrix is Anti Symmetric.\n ");