帮我看看,谢谢
3 回答
已采纳
聊发少年狂
TA贡献9条经验 获得超9个赞
#include <stdio.h> int main () { int score; printf("input the score:"); scanf("%d",&score); if(score<0 || score>100){ printf("input score error!\n"); }else{ score /= 10; switch(score){ case 10: case 9: printf("the score is 'A'\n"); break; case 8: printf("the score is 'B'\n"); break; case 7: printf("the score is 'C'\n"); break; case 6: printf("the score is 'D'\n"); break; default: printf("the score is 'E'\n"); break; } } return 0; }
- 3 回答
- 0 关注
- 1383 浏览
添加回答
举报
0/150
提交
取消