你能放吗
#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")));
给我发邮件