Letter grade
Read a score from 0 to 100 and print its grade: A for 90 and above, B for 75 to 89, C for 50 to 74, and F below 50.
Input
95
Expected output
A
Input
75
Expected output
B
Show a hint
Check the highest band first, then use else if for the lower ones.
Show a solution
Loading the editor…
Run the tests to check your solution.