On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
17. Exercise 3


Great! Let's do one more exercise.


Students are assigned grades from A to F based on their scores on tests:

  • 90–100: A
  • 80–89: B
  • 70–79: C
  • 60–69: D
  • 0–59: F

Write a program that accepts a test score (an integer from 0 to 100) and prints the respective letter grade.