给出一百分制成就,请求输出成就等级‘A’、‘B’、‘C’、‘D’、‘E’。90分以上为‘A’,80~89分为’B‘,70~79分为’C‘,60~69分为’D‘,60分下列为’E‘。
解:文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
int main文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
{文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
float score;文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
printf;文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
scanf;文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
while文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
{文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
printf;文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
scanf;文章源自微观生活(93wg.com)微观生活-https://93wg.com/9003.html
}
switch)
{
case 10:
case 9:printf;break;
case 8:printf;break;
case 7:printf;break;
case 6:printf;break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0:printf;
}
return 0;
}
以上就是微观生活(93wg.com)关于“C程序设计(第五版)——第四章第8题”的详细内容,希望对大家有所帮助!
评论