#include <stdio.h>
int main()
{
int score ;
printf("Please enter your score:\n");
scanf("%d", &score);
if (score >= 80 && score <= 100)
{
printf("Your score is %i grade A", score);
}
else if (score >= 70 && score <= 79)
{
printf("Your score is %i grade B", score);
}
else if (score >= 65 && score <= 69)
{
printf("Your score is %i grade C", score);
}
else if (score >= 60 && score <= 64)
{
printf("Your score is %i grade D", score);
}
else if (score >= 50 && score <= 59)
{
printf("Your score is %i grade E", score);
}
else if ( score <= 49 && score >= 0)
{
printf("Your score is %i grade F", score);
}
else
{
printf("you entered invalid score");
}
return 0;
}