Two table tennis teams compete, and each team has three players. Team A has three players, A, B and C, and Team B has three players, X, Y, Z, Y and Z. The names of the competitions are all decided by

Two table tennis teams compete, and each team has three players. Team A has three players, A, B and C, and Team B has three players, X, Y, Z, Y and Z. The names of the competitions are all decided by drawing lots, and some people have played against the players. # include & ltstdio.h & gt

void main()

{

char i,j,k; /*i is the opponent of A, J is the opponent of B and K is the opponent of C */

for(I = ' X '); I<=' Zi++)

for(j = ' X '); j & lt= ' Zj++)

{

If (me! =j)

for(k = ' X '); k & lt= ' Zk++)

{If (I! = k & amp& ampj! =k)

{

If (me! = ' X ' & amp& ampk! = ' X ' & amp& ampk! ='Z') printf("order is A-%c\tB-%c\tC-%c\n ",I, J, K);

}

}

}

}

Hope to adopt! !