//The fourth edition of C Programming (Tan Haoqiang)
//Chapter: Chapter 4 Selecting Structure Programming Design
//Question number: 4.8
//Title: Given a score on a one hundred-point scale, requiring the output scores A, B, C, D, E. A score above 90 is A, 80~89 is B, 70~79 is C, 60~69 is D, 60 is E
#include <>
int main()
{
float grade;
printf("input grade: ");
scanf("%f",&grade);
if(grade>=90)
printf("A\n");
else if(grade>=80&&grade<=89)
printf("B\n");
else if(grade>=70&&grade<=79)
printf("C\n");
else if(grade>=60&&grade<=69)
printf("D\n");
else if(grade<60)
printf("E\n");
else
printf("input grade error!\n");
return 0;
}