我是初学者,这有个学生成绩排名的玛,求高人指点。。
#include <stdio.h>void main()
{
int score;
printf("请输入学生成绩:");
scanf("%d",&score);
cj = score / 10;
switch (score)
{
case 10:printf("优秀.\n");
break;
case 9:printf("优秀.\n");
break;
case 8:printf("良好.\n");
break;
case 7:printf("中等.\n");
break;
case 6:printf("及格.\n");
break;
case 5:
break;
case 4:
break;
case 3:
break;
case 2:
break;
case 1:
break;
case 0:
break;
default:printf("不及格.\n");
}
}