Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Summary
17. Exercise 3

Instruction

Great! Let's do one more exercise.

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.