transverses the first
n
rows and columns of a and sets
ck
to false if any
a[i][j]
is not equal to
a[j][i]
for (i = 0; i<n; i++)
for (j = 0; j<n; j++)
if (a[i][j] != a[j][i])
ck = FALSE;