CJCoding With Joseph
15free / daySign inCreate account

Letter Grade Calculator

Read a numeric score from 0 to 100 and print the matching letter grade using an if/else if chain. A score of 90 or above is "A", 80 to 89 is "B", 70 to 79 is "C", 60 to 69 is "D", and anything below 60 is "F". Check the highest boundary first and work downward.

Expected Output:

A

= newline. The output ends with a newline — print one 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 (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.