#include<stdio.h> #include<math.h> int main() { int score; printf("请输入您的成绩\n"); scanf_s("%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 if (score < 60) { printf("您的等级是不合格\n"); } return 0; }
10-10
11-20
8588
08-09
4668