问题标题: 1753怎么写???

0
0

0
已采纳
臧启亚
臧启亚
初级光能
初级光能

核心代码

if (a<=3500)b=0;
    else if (a<=5000)b=(a-3500)*0.03;
    else if (a<=8000)b=(5000-3500)*0.03+(a-5000)*0.1;
    else if (a<=12500)b=(5000-3500)*0.03+(8000-5000)*0.1+(a-8000)*0.2;
    else if (a<=38500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(a-12500)*0.25;
    else if (a<=58500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(38500-12500)*0.25+(a-38500)*0.3;
    else if (a<=83500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(38500-12500)*0.25+(58500-38500)*0.3+(a-58500)*0.35;
    else if (a>83500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(38500-12500)*0.25+(58500-38500)*0.3+(83500-58500)*0.35+(a-83500)*0.45;
    printf("%.2f",b);

 

0
0
0
0
0
颜咏春
颜咏春
中级光能
中级光能

我想回答,可我进不去!!!

0
-1
我要回答