Skip to content

Practice Problem 4

Seanti edited this page Mar 26, 2025 · 1 revision

Problem:

Create a grading system where the user inputs a numerical grade (1-100). The program should output the corresponding letter grade based on the following scale:

  • 90-100 → A

  • 80-89 → B

  • 70-79 → C

  • 60-69 → D

  • Below 60 → F

Sample Output:

Enter your grade: 85  
Your letter grade is: B  
Enter your grade: 72  
Your letter grade is: C  
Enter your grade: 59  
Your letter grade is: F  

Clone this wiki locally