switch语句中case为空时的意义
一成绩单的程序void main()
{float score;
printf("input score:\n");
scanf("%f",&score);
if(score>100||score<0)
{ printf("The score is error\n");
exit(0);
}
switch((int)score/10)
{case 0:
case 1:
case 2:
case 3:
case 4:
case 5: printf("Fail\n");
breke;
case 6: printf("pass\n");
breke;
case 7 :
case 8:printf("Good\n");
breke;
case 9:
case10:pintf("Excellent\n");
}
}
中的case7如何执行那?0-5中并没有breke跳出,如何执行那?还有exit(0)是终止程序的意思吗?
请高手赐教。