1614700502...
#include <stdio.h> #include <math.h>
int main()
{
double a,rate,tax,profit;
printf("奖金数:");
scanf("%lf",&a);
if (a>=0&&a<500)
rate=0.00;
else if(a>=500&&a<1000)
rate=0.05;
else if(a>=1000&&a<2000)
rate=0.08;
else if(a>=2000&&a<5000)
rate=0.10;
else if(a>=5000)
rate=0.15;
tax=a*rate;
profit=a-tax;
printf("%lf=具体值,%lf=税率值,%lf=应缴税款,%lf=实得奖金数",a,rate,tax,profit);
return 0;
}