你能放吗
#include
主()
{
float x,num [9] = {0};
char i ="n";
x = 0;
做
scanf(“%f”,&x);
如果(x <= 500)
数值[0] = x-x * 0.05;
printf(“应得薪水为%.2f”,数字[0]);
}
否则,如果(x <= 2000)
num [1] = x-(num [0] +(x-500)* 0.1);
printf(“应得的薪水为%.2f”,编号[1]);
否则,如果(x <= 5000)
num [2] = x-(num [1] +(x-2000)* 0.15);
printf(“应得的薪水为%.2f”,编号[2]);
num [3] = x-(num [2] +(x-5000)* 0.2);
printf(“应得薪水为%.2f”,编号[3]);
printf(“应得的薪水为%.2f”,编号[4]);
printf(“应得的工资是%.2f”,数字[5]);
printf(“应得的薪水为%.2f”,编号[6]);
printf(“应得的薪水为%.2f”,编号[7]);
}其他
printf(“应得的薪水为%.2f”,编号[8]);
printf(“选择是否继续执行:y或n \ n”);
scanf(“%c”,&i);
} while(((i =="y")||(i =="Y")));
给我发邮件
#include“ stdio.h”
重复计数(整数a,整数b)
double c = a-b-3500;
如果(c <= 0)
c = 0;
否则,如果(c <= 1500)
c = c * 0.03;
否则,如果(c <= 4500)
c = c * 0.1-105;
否则,如果(c <= 9000)
c = c * 0.2-555;
c = c * 0.25-1005;
c = c * 0.3-2755;
c = c * 0.35-5505;其他
返回c;
无效的main()
int选择;
而(1)
printf(“ \ t \ t个人所得税计算器\ n”);
printf(“ 1。计算个人所得税\ n”);
printf(“ 2. Exit \ n”);
printf(“请输入选项(1或2):”);
scanf(“%d”,并选择);
如果(选择== 2)
休息;
否则,如果(选择== 1)
内部付款,宝贤;
printf(“ \ n输入您的月收入:”);
scanf(“%d”,&pay);
printf(“ \ n输入您的三份保险和一金:”);
scanf(“%d”,&baoxian);
printf(“您的个人所得税为:%0.2f”,计数(薪水,宝贤));
printf(“ \ n \ t \ t >>>注意:请输入1或2 <<< \ n”);