1条回答 默认 最新
- qfl_sdu 2021-06-17 14:55关注
代码如下,如有帮助,请采纳一下,谢谢。
#include <stdio.h> int main() { int total,cx; int jj = 0; printf("请输入总成绩和操行成绩:"); scanf("%d %d",&total,&cx); if (total > 450 && cx >= 90) //题目要求超过450,所以不包含等于450 { jj = 1000; }else if (total>= 350 && total <= 449 && cx >=80 && cx <= 89) { jj = 800; }else if (total >=250 && total <= 349 && cx >= 75 && cx <= 79) { jj = 500; } printf("奖金:%d\n",jj); return 0; }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报