include <stdio.h>
/*to calculate the grade letter based on score*/
float getGrade(int score) {
if(score>=90 && score<=100)
return 'A';
if(score>=80 && score<=89)
return 'B';
if(score>=70 && score<=79)
return 'C';
if(score>=60 && score<=69)
return 'D';
if(score>=0 && score<=59)
return 'F';
else
return 'I';
}
/*Driver code or main method*/
int main() {
int score;
printf("Enter your score : ");
scanf("%d", &score);
float grade = getGrade(score);
printf(" %dt %c", score, grade
);
return 0;
}