请问我的代码错在哪里?谢谢啦!
#include<stdio.h>main()
{ double Salary,DF;
printf("输入工资:");
scanf("%.2f",&Salary);
if(Salary<=3000.0)
{ DF=Salary*0.005;
printf("应缴党费为%.2f.\n",DF);
}
if(3000.0<Salary<=5000.0)
{ DF=Salary*0.01;
printf("应缴党费为%.2f.\n",DF);
}
if(5000.0<Salary<=10000.0)
{ DF=Salary*0.015;
printf("应缴党费为%.2f.\n",DF);
}
if(Salary>10000.0)
{ DF=Salary*0.02;
printf("应缴党费为%.2f.\n",DF);
}
else
{printf("输入错误.\n");
}
return 0;
}