两个兵乓球队,甲队ABC,乙队XYZ,A不和X比,C不和XZ比,用编程程序找比赛对手名单
int _tmain(int argc, _TCHAR* argv[])
{
int i,j;
for(i='x';i<='z';i++);
{
for(j='A';j<='C';j++);
{
while(i=='X'&&j=='A')continue;
while(i!='X'&&j=='C')continue;
printf("%c",j);
}
printf("%c",i);
}
return 0;
}