CJCoding With Joseph
15free / daySign inCreate account

Letter Grade (Practice)

Convert a numeric exam score (0 to 100) into a single letter grade using these boundaries: 90 and above is A, 80 to 89 is B, 70 to 79 is C, 60 to 69 is D, and anything below 60 is F. Read one integer score and print exactly one uppercase letter. An if / else if chain that checks the highest boundary first makes this clean.

Expected Output:

A

= newline. No newline after the last line.

Hints4 available
Topics:
If Statements
📥 Auto-Input:
95\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.