326. Grade Calculator
EasyConditionals
Print the grade for each mark: 90–100 → A, 80–89 → B, 70–79 → C, 60–69 → D, below 60 → F.
Input format
Line 1: n Line 2: n marks (0–100)
Output format
n grades, space-separated.
Example 1
Input
5 95 82 70 59 60
Output
A B C F D
Example 2
Input
1 100
Output
A
Constraints
1 ≤ n ≤ 1000
Read input from standard input and print the answer to standard output. Your code is judged against 3 test cases, most of them hidden.
Loading the MyLoginn IDE…