Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
273 B
0
Indexable
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 ");