vs2019 if else语句莫名报错,是否这是vs的bug

问题描述:


#include<stdio.h>
#include<math.h>
void main()
{
    int score;
    printf("please in put your score");
    scanf("%d", &score);
    if (score < 60)
    {
        printf("E");
    }
    else if (60 <= score && score < 70)
    {
        printf("D");
    }
    else if (70 <= score && score < 80);
    {
        printf("C");
    }
    else if (90 <= score)
    {
        printf("A");
    }
    
}

严重性 代码 说明 项目 文件 行 禁止显示状态
错误 C2181 没有匹配 if 的非法 else 学习项目 F:\编程\学习项目\学习项目.cpp 20

知道不能写这种屎山,这只是练习

另外多嘴一句,不得不说vs是个神奇的东西

第17行else if语句后面多了个分号!!!!