CJCoding With Joseph
15free / daySign inCreate account

Mark To Letter Band

Read a mark out of 100 and print its letter: A for 80 or more, B from 70 up to but not including 80, C from 60, D from 50, and F for anything below 50. Input: one integer, the mark, no prompt. Output: one letter on one line, chosen by a single if / elif / else chain that tests the bands from the top down.

Expected Output:

A

= newline. The output ends with a newline — print one after the last line.

Hints4 available
Topics:
If Statements
📥 Auto-Input:
85\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 · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.