萌新求助,用的Dev-C++编的,不知道哪儿错了一直显示'else' without a previous 'if'
#include<stdio.h>int main(void)
{
float score;
printf("请输入你的考试成绩:");
scanf("%f",&score);
if (score>100);
{
printf("别做梦了!\n");
}
else if (score>=90);
{
printf("优秀!\n");
}
else if (score>=80);
{
printf("良好!\n");
}
else if (score>=60);
{
printf("及格!\n");
}
else if (score>=0)
{
printf("不及格!\n");
}
else (score<0);
{
printf("同学别闹,继续努力,争取考到100分!\n");
}
return 0;
}
请问这里else if哪里错了?编码显示错误'else' without a previous 'if',萌新求助大佬