mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-27 02:25:37 +00:00
22 lines
363 B
C
22 lines
363 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
char grade;
|
|
|
|
scanf("%c", &grade);
|
|
|
|
if (grade == 'A') {
|
|
printf("85~100\n");
|
|
} else if (grade == 'B') {
|
|
printf("70~84\n");
|
|
} else if (grade == 'C') {
|
|
printf("60~69\n");
|
|
} else if (grade == 'D') {
|
|
printf("<60\n");
|
|
} else {
|
|
printf("Error\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|