在以下程序中,fun函数中应该改动哪部分才能使程序正常运行
示例:
输入:89
输出:The grade is:B
已结题
c语言fun函数的调用
图片转代码服务由CSDN问答提供 功能建议
#include<stdio.h
charfun(ints)
chargrade
intn=s/18
shitch(n)
case10:
case9:
Thescoreis:A;
break:
case8:
The scoreis:B'
break;
case7:
The scoreis:C';
break;
ca5e6:
The scoreis:D';
break:
case5:
ca5e4
case3:
case2:
case1:
Ca5e8:
Thescoreis:E
break;
intmain(void)
int Score:
Scanf(“%d”. 8score)
printf(“Thegradeis:c”,fun(score));
return e;
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答