🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>[info]通过月利润计算奖金 ~~~C #include <stdio.h> int main() { int i; double sum,one=10*0.1,two=one+10*0.075,four=two+20*0.05,six=four+20*0.03,ten=six+40*0.015; printf("请输入月利润:\n"); scanf("%d",&i); i/=10000; if(i<=10) sum = i*0.1; else if(i<=20) sum = one+(i-10)*0.075; else if(i<=40) sum = two+(i-20)*0.05; else if(i<=60) sum = four+(i-40)*0.03; else if(i<=100) sum = six+(i-60)*0.015; else sum = ten+(i-100)*0.01; sum*=10000; printf("奖金=%1f\n", sum); return 0; } ~~~