Previous Next
0 / 13
Module DEMO-32-56DEMO-C-32

School Grading System

DEMO-C-32 โ€ข Programming in C

Browser-only practice

Problem Statement

The King Abdullah II School has a grading system where students receive grades based on their performance. If a student scores more than 90, they get an 'A'. Scores between 80 and 89 result in a 'B', while scores between 70 and 79 give a 'C'. Any score below 70 is considered a 'D'. You need to determine their respective grades.

Constraints


Input Format

int stuident score

Output Format

The output should contain the grade for the student,

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
59
D
Sample #2
Public sample
85
B
Sample #3
Public sample
96
A
Sample #4
Public sample
76
C

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings