第一次发帖,求给个面子解释下,照抄郝斌c语言视频的,看了好多遍,不知道是哪里问题
# include <stdio.h>
int main (void)
{
float score; //score分数
printf("请输入你的分数:");
scanf("%f",&score);
if (score > 100)
printf("这是做梦!\n");
else if (score >= 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;
}
# include <stdio.h>
int main (void)
{
float score; //score分数
printf("请输入你的分数:");
scanf("%f",&score);
if (score > 100)
printf("这是做梦!\n");
else if (score >= 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;
}