A队和B队用C语言抽签
# include & ltstdio.h & gt
void main()
{
char i,j,k;/*i是A的对手,J是B的对手,K是C的对手*/
for(I = ' X ');我& lt= ' Zi++)
for(j = ' X ');j & lt= ' Zj++)
{
如果(我!=j)
for(k = ' X ');k & lt= ' Zk++)
{如果(我!= k & amp& ampj!=k)
{
如果(我!= ' X ' & amp& ampk!= ' X ' & amp& ampk!='Z') printf("order是A - %c\tB - %c\tC - %c\n ",I,j,k);
}
}
}
}
望采纳!!