代码如下,如有帮助,请采纳一下,谢谢。
#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;
}