Create a program that will print the student’s letter grade given the following specifications :

90 – 100 = A
80 – 89 = B
70 – 79 = C
60 – 69 = D
below 60 = F

1 answer

letter = (n>=90) ? "A" :
(n>=80) ? "B" :
(n>=70) ? "C" :
(n>=60) ? "D" : "E";