How would I write that ?

while (x == n[i][i]) bad = 1;

or in an if statment ? Or something else ?