回复 2楼 wp231957
二楼教训的是,代码马上上传:
# include <stdio.h>
int main(void)
{
float score;//score 分数
printf("请输入您的考试成绩:");
scanf("%f, &score");
if (score > 100)
printf("这是做梦!\n");
else if (score >= 90 && score <= 100)//能写成90<=score<=100
printf("优秀!\n");
else if (score >= 80 && score < 90)
printf("良好!\n");
else if (score >= 60 && score < 80)
printf("及格!\n");
else if (score >= 0 && score < 60)
printf("不及格!\n");
else
printf("您输入的分数过低,不予显示等级!\n");
return 0;
}