Print a grade for marks: A for 90 or more, B for 75 to 89, C for 50 to 74, and D below 50.
marks
A
B
C
D
grade(92) prints A grade(60) prints C
New to this? The If / Else & Loops lesson explains it from scratch.