#include <stdio.h>

int main() { int score; printf("请输入成绩:"); scanf("%d", &score);

if (score >= 90) {
    printf("等级为A\n");
} else if (score >= 80) {
    printf("等级为B\n");
} else if (score >= 70) {
    printf("等级为C\n");
} else if (score >= 60) {
    printf("等级为D\n");
} else {
    printf("等级为E\n");
}

return 0;

}


原文地址: https://www.cveoy.top/t/topic/byFx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录