答案:switch(s){case 3:
case 4:
case 5:
case 6: x=2; break;
case 2:
case 9:
case 10: x=3;break;
case 1:
case 7:
case 8: x=1;break;
default: x=0;
case
void main()
{
int s,x;
switch(s)
{
case 3:
case 4:
case 5:
case 6:x=2;break;
case 1:
case 7:
case 8:x=1;break;
case 9:
case 10:
case 2:x=3;break;
default:x=0;
}
}
上一个:计算机C语言怎么才能学好?
下一个:C语言跟C++有什么不同