解题思路:
注意事项:
参考代码:
#include<stdio.h>
int main(){
double a;
scanf("%lf",&a);
if(a<=100000)printf("%.2f",a*0.1);
else if(a<=200000)printf("%.2f",10000+(a-100000)*0.075);
else if(a<=400000)printf("%.2f",17500+(a-200000)*0.05);
else if(a<=600000)printf("%.2f",27500+(a-400000)*0.03);
else if(a<=1000000)printf("%.2f",33500+(a-600000)*0.015);
else printf("%.2f",39500+(a-1000000)*0.01);
}
0.0分
1 人评分