# include <stdio.h>
int main(void)
{
int score;
printf("请输入您的成绩:");
scanf("%d",&score);
switch (score / 10)
{
case 10:
case 9:
printf("成绩优秀\n");
break;
case 8:
printf("成绩良好\n");
break;
case 7:
printf("成绩中等\n");
break;
case 6:
printf("成绩及格\n");
break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0:
printf("成绩不及格\n");
break;
default:
printf("输入成绩有错\n");
break;
}
return 0;
}
int main(void)
{
int score;
printf("请输入您的成绩:");
scanf("%d",&score);
switch (score / 10)
{
case 10:
case 9:
printf("成绩优秀\n");
break;
case 8:
printf("成绩良好\n");
break;
case 7:
printf("成绩中等\n");
break;
case 6:
printf("成绩及格\n");
break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0:
printf("成绩不及格\n");
break;
default:
printf("输入成绩有错\n");
break;
}
return 0;
}