Competition list. Someone asked the players about the list of matches. A says he won't compare with X, and C says he won't compare with X and Z. Please make a program to find out.
A list of the players from the third team.
1. program analysis: the method of judging the prime number: divide 2 by a number to sqrt (this number), if it can be divisible,
It means that this number is not prime, but prime.
2. The program source code:
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)
for(k = ' x '); k & lt= ' zk++)
{If (I! = k & amp& ampj! =k)
{If (I! = ' x ' & amp& ampk! = ' x ' & amp& ampk! ='z ')
Printf("order is a-%c\tb-%c\tc-%c\n ",I, J, K);
}
}
}
}