Answer:
The answer is the program, in the explanation
Explanation:
I am going to write a C program.
int main(){
int grade = -1; /*The grade will be read to this variable*/
/*This loop will keep repeating until a valid grade is inserted*/
while(grade < 0 || grade > 100){
printf("Insert the student's grade: %n");
scanf("%d", &grade);
}
/*The conditional according to the grade value*/
if (grade >= 90){
printf("Your grade is A\n");
}
else if (grade >= 80 && grade < 90){
printf("Your grade is B\n");
}
else if (grade >= 70 && grade < 80){
printf("Your grade is C\n");
}
else if (grade >= 60 && grade < 70){
printf("Your grade is D\n");
}
else{
printf("You got a failling grade\n");
}
return 0;
}