#include <stdio.h>
int main() {
int score;
scanf("%d", &score);
switch(score/10){
case 10:
case 9:
printf("A");
break;
case 8:
printf("B");
break;
case 7:
printf("C");
break;
default:
printf("F")
break;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: