#include<stdio.h>
int main()
{
double profit;
double prize;
printf("请您输入本月利润(万元):");
scanf("%lf",&profit);
if(profit<=10){
sum=profit*0.1;
}
else if(profit>10&&profit<20){
sum=10*0.1+(profit-10)*0.075;
}
else if(profit>20&&profit<40){
sum=10*0.1+10*0.075+(profit-20)*0.05;
}
else if(profit>40&&profit<60){
sum=10*0.1+10*0.075+20*0.05+(profit-40)*0.03;
}
else if(profit>60&&profit<100){
sum=10*0.1+10*0.075+20*0.05+20*0.03+(profit-60)*0.015;
}
else{
10*01+10*0.075+20*0.05+20*0.03+40*0.015+(profit-100)*0.01;
}
printf("您本月可获得奖金为%f(万元):",sum);
return 0;
}