swith程序的错误
main(){
int a,b;
printf("a= ");
scanf("%d",&a);
b=a/1000;
if(0<a&&a<1000)
printf("mian shui");
else if(a<0)
printf("shu ru you wu");
else
swith(b)
{
case 1:
case 2:
case 3:
case 4: printf("jiao fei%d\n",a*0.02);
case 5:
case 6:
case 7:
case 8:
case 9: printf("jiao fei%d\n",a*0.03);
case 10: printf("jiao fei%d\n",a*0.05);
}
getch();
}
运行时提示:错误 noname.c 13: 语句缺少';'在 main 函数中
恩,调试了半天也不见有变化 麻烦朋友们帮我看下 谢谢先