← Back to If Statements
Question 264
Letter Grade Calculator
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
Sign in to use hintsTopics:
If Statements
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.