Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Grade Checker

Write a program that reads a test score from input and prints the correct letter grade!

  • A if score is 90 or above
  • B if score is 80 or above
  • C if score is 70 or above
  • D if score is 60 or above
  • F otherwise

Print just the letter, like B.

Tip: Use if, else if, and else. Check from the highest grade down!

rust
fn main() {
}