BlueBook
Given integers in the range , representing percentages, calculate which letter grade each of them corresponds to.
The mark table is as follows:
Grade | Marks Range |
---|---|
A | 80 - 100 |
B | 70 - 79 |
C | 60 - 69 |
D | 50 - 59 |
F | 0 - 49 |
X | Anything else… |
Input Specification
Line : One integer
Lines : One integer
Output Specification
Lines : One character denoting the letter grade received.
Sample Input
3
10
99
101
Sample Output
F
A
X
Comments