#include int main(){int x ,y ,z;printf("Please enter the salary amount to computer :");scanf("%d",&x);y = x - 1600;if(y = 100000)z = y * 0.45;else if(y >= 80000)z = y * 0.4;else if(y >= 60000)z = y * 0.35;else if(y >= 40000)z = y * 0.3;else if(y >= 2
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 21:48:39
#include int main(){int x ,y ,z;printf("Please enter the salary amount to computer :");scanf("%d",&x);y = x - 1600;if(y = 100000)z = y * 0.45;else if(y >= 80000)z = y * 0.4;else if(y >= 60000)z = y * 0.35;else if(y >= 40000)z = y * 0.3;else if(y >= 2
#include
int main()
{
int x ,y ,z;
printf("Please enter the salary amount to computer :");
scanf("%d",&x);
y = x - 1600;
if(y = 100000)
z = y * 0.45;
else if(y >= 80000)
z = y * 0.4;
else if(y >= 60000)
z = y * 0.35;
else if(y >= 40000)
z = y * 0.3;
else if(y >= 20000)
z = y * 0.25;
else if(y >= 5000)
z = y * 0.2;
else if(y >= 2000)
z = y * 0.15;
else if(y >= 500)
z = y * 0.1;
else
z = y * 0.05;
printf("\n\n Need to pay the amount of tax to be paid for:");
printf("%d \n\n",z);
return 0;
}
这个是我编的 但是输入比 1600小的数是错误的
#include int main(){int x ,y ,z;printf("Please enter the salary amount to computer :");scanf("%d",&x);y = x - 1600;if(y = 100000)z = y * 0.45;else if(y >= 80000)z = y * 0.4;else if(y >= 60000)z = y * 0.35;else if(y >= 40000)z = y * 0.3;else if(y >= 2
嗯哼?你那里不是有一句y = x - 1600;
if(y