Score conversion time limit: 1000 MS | memory limit: 65535 KB difficulty: 1
-
-
Description
-
Compile a program for determining the Student Score level. The function of this program is to judge a score (integer). If the number is greater than or equal to 90, output A. If the number is greater than or equal to 80, output B, if the value is greater than or equal to 70, C is output. If the value is greater than or equal to 60, D is output. If the value is smaller than 60, e is output.
-
-
Input
-
-
There are multiple groups of test data, ending with EOF.
Enter a score U (0 <= u <= 100) for each group ).
-
-
Output
-
-
Each group of data outputs a row, that is, the corresponding level of the Student Score. (A or B or C or D or E)
-
-
Sample Input
-
-
100
-
-
Sample output
-
-
A
# Include <stdio. h> int main () {int N; while (~ Scanf ("% d", & N) {n = N/10; If (n <6) printf ("e \ n"); else if (n <7) printf ("d \ n"); else if (n <8) printf ("C \ n"); else if (n <9) printf ("B \ n"); elseprintf ("A \ n");} return 0 ;}
Nyoj-score Conversion