新手求助
#include "stdafx.h"
#include <stdio.h>
#include <math.h>
void main()
{
float m,n,s;
printf("实发工资为:");
scanf("%f",m);
n=m-3500;
if(n>0)
{
if(n<=1500)
s=n*0.03;
else if(n>=500&&n<=4500)
s=n*0.1-105;
else if(n>4500&&n<=9000)
s=n*0.2-555;
else if(n>9000&&n<=35000)
s=n*0.25-1005;
else if(n>35000&&n<=55000)
s=n*0.3-2755;
else if(n>55000&&n<=80000)
s=n*0.35-5505;
else
s=n*0.45-13505;
}
else
s=0;
printf("应交税款为%f\n",s);
}
怎么输不出结果?? scanf("%f",&m); 抱歉,我懂了,忘了个&
页:
[1]