#t10. 百分制转五分制成绩转换

百分制转五分制成绩转换

Convert Percentage Grade to Five-Level Grade

Problem Description

Write a program to convert a percentage grade into a five-level grade. The rules are:

  • Greater than or equal to 9090: grade A;
  • Less than 9090 and greater than or equal to 8080: grade B;
  • Less than 8080 and greater than or equal to 7070: grade C;
  • Less than 7070 and greater than or equal to 6060: grade D;
  • Less than 6060: grade E.

Input Format

One line giving an integer percentage grade.

Output Format

One line giving the corresponding five-level grade.

Sample Input 1

95

Sample Output 1

A

Sample Input 2

55

Sample Output 2

E

Constraints

0≤0 \le input grade ≤100\le 100

Hint

  • Five-band range judgment. Think about whether judging from large to small or small to large lets you write shorter conditions — you need not write both bounds every time.
  • Get the boundaries exact: 9090 belongs to A, 8989 belongs to B.
  • Check against the sample: 95 → A, 55 → E.