c语言基础知识求解,实在有点懵逼

为啥我在本地输入之后,按下Enter并不会运行啊?用的vs

#include<stdio.h>
int main()
{
    int num;
    double score, total;
    num = 0;
    total = 0;
    printf("请输入学生的成绩:\n");
    scanf_s("%lf", &score);
    while (score >= 0)
    {
        total = total + score;
        num++;
        scanf_s("%lf", &score);
    }
    if (num != 0)
        printf("平均成绩为: %.2f\n", total / num);
    printf("总成绩为: %.2f\n", total);
    if (num == 0)
        printf("平均成绩:0\n");
    return 0;
}


一直输入,但是没输出结果吗?