#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,m,i,j,a[50][50];
printf("Unesi dimenziju matrice\n "); for(i=0;i<n;i++)
{
printf("Unesi elemente %d. vrste\n",i
+1); for(j=0;j<n;j++)
}
m=1;
for(i=1;i<n;i++)
for(j=0;j<i;j++)
if(a[i][j]!=a[j][i]) m=0;
if(m
) printf("matrica je simetricna u odnosu na glavnu dijagonalu"); else printf("matrica nije simetricna u odnosu na glavnu dijagonalu"); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkKewogICAgaW50IG4sbSxpLGosYVs1MF1bNTBdOwogICAgcHJpbnRmKCJVbmVzaSBkaW1lbnppanUgbWF0cmljZVxuICIpOwogICAgc2NhbmYoIiVkIiwmbik7CiAgICBmb3IoaT0wO2k8bjtpKyspCiAgICB7CiAgICAgICAgcHJpbnRmKCJVbmVzaSBlbGVtZW50ZSAlZC4gdnJzdGVcbiIsaSsxKTsKICAgICAgICAgICAgZm9yKGo9MDtqPG47aisrKQogICAgICAgICAgICBzY2FuZigiJWQiLCZhW2ldW2pdKTsKICAgIH0KICAgIG09MTsKICAgIGZvcihpPTE7aTxuO2krKykKICAgICAgICBmb3Ioaj0wO2o8aTtqKyspCiAgICAgICAgaWYoYVtpXVtqXSE9YVtqXVtpXSkgbT0wOwogICAgICAgIGlmKG0pIHByaW50ZigibWF0cmljYSBqZSBzaW1ldHJpY25hIHUgb2Rub3N1IG5hIGdsYXZudSBkaWphZ29uYWx1Iik7CiAgICAgICAgICAgIGVsc2UgIHByaW50ZigibWF0cmljYSBuaWplIHNpbWV0cmljbmEgdSBvZG5vc3UgbmEgZ2xhdm51IGRpamFnb25hbHUiKTsKICAgIHJldHVybiAwOwp9