Master ()
{
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)/*i and j can't be equal, because A and B can't have the same opponent. This content is not given in the title, so we have to introduce */
for(k = ' x '); k & lt= ' zk++)
{If (I! = k & amp& ampj! =k)/* I and the second cycle! =j is the same reason, abc can't have the same opponent */
{If (I! = ' x ' & amp& ampk! = ' x ' & amp& ampk! ='z')/* It means that A is not right for X and C is not right for xz */
Printf("order is a-%c\tb-%c\tc-%c\n ",I, J, K);
}
}
}
}
//There are many solutions. I don't know what kind of answer you want. . .