Grade from Score
Map a numeric score to a letter grade with if-else-if.
Input format
One line with an integer score between 0 and 100.
Output format
Print the letter grade: A for 90 and above, B for 80-89, C for 70-79, D for 60-69, otherwise F.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
95Expected output
AExample 2
Input
72Expected output
C