C language example

Look at this code:

# include & ltstdio.h & gt

int main()

{

int i,j,k;

for(I = 1; I < = 3; I++)//A, X, Y and Z have three choices.

for(j = 1; j & lt=3; J++) // Choose X, Y and Z in 3 for B.

for(k = 1; k & lt=3; K++)//C, X, Y and Z have three choices.

If (me! = j & amp& ampj! = k & me! = k & me! = 1。 & ampj! = 1。 & ampj! =3)

//and A, B, C opponents must be different (me! = 1 is the opponent of A, not X, J! = 1 is B's opponent, not X, J! =3 is B's opponent, not Z)

printf ("A - %c\nB - %c\nC - %c\n ",i+'X'- 1,j+'X'- 1,k+' X '- 1);

Returns1;

}