C程序设计(第五版)——第四章第8题

小微 科技C程序设计(第五版)——第四章第8题已关闭评论119字数 344阅读模式
摘要给出一百分制成绩,要求输出成绩等级‘A’、‘B’、‘C’、‘D’、‘E’。90分以上为‘A’,80~89分为’B‘,70~79分为’C‘,60~69分为’D‘,60分以下为’E‘。...

给出一百分制成就,请求输出成就等级‘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题”的详细内容,希望对大家有所帮助!

 
小微
  • 版权声明: 本文部分文字与图片资源来自于网络,转载此文是出于传递更多信息之目的,若有来源标注错误或侵犯了您的合法权益,请立即通知我们(管理员邮箱:81118366@qq.com),情况属实,我们会第一时间予以删除,并同时向您表示歉意,谢谢!
  • 转载请务必保留本文链接:https://93wg.com/9003.html