mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-23 15:48:42 +00:00
24 lines
433 B
C
24 lines
433 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int t;
|
|
|
|
scanf("%d", &t);
|
|
|
|
if (t >= 90 && t <= 100) {
|
|
printf("A\n");
|
|
} else if (t >= 80 && t <= 89) {
|
|
printf("B\n");
|
|
} else if (t >= 70 && t <= 79) {
|
|
printf("C\n");
|
|
} else if (t >= 60 && t <= 69) {
|
|
printf("D\n");
|
|
} else if (t >= 0 && t <= 59) {
|
|
printf("E\n");
|
|
} else {
|
|
printf("Score is error!\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|