#include "stdio.h"
void main()
{
float salary,rate;
printf("输入工资:");
scanf("%f",&salary);
if(salary<=850)
rate=0;
else if(salary>850&&salary<=1350)
rate=5;
else if(salary>1350&&salary<=2850)
rate=10;
else if(salary>2850&&salary<=5850)
rate=15;
else if(salary>5850)
rate=20;
printf("应交所得税:%.2f",rate);
}
具体点