int main()
{ char grade;
scanf("%c",&grade);
printf("Your score:");
switch(grade)
{case'A':printf("85~100\n");break;
case'B':printf("70~84\n");break;
case'C':printf("60~69\n");break;
case'D':printf("<60\n");break;
default;printf("enter data error!\n");
}
return 0;
}
例4.6
最新推荐文章于 2022-02-18 19:50:19 发布