题目描述
比较简单
样例
#include<stdio.h>
int main()
{
double x,X,Y,Z;
scanf("%lf",&x);
if(x>0&&x<=400)
{
Z=0.15;
Y=x*Z;
X=Y+x;
}
if(x>400&&x<=800)
{
Z=0.12;
Y=x*Z;
X=Y+x;
}
if(x>800&&x<=1200)
{
Z=0.10;
Y=x*Z;
X=Y+x;
}
if(x>1200&&x<=2000)
{
Z=0.07;
Y=x*Z;
X=Y+x;
}
if(x>2000)
{
Z=0.04;
Y=x*Z;
X=Y+x;
}
Z=Z*100;
printf("Novo salario: %.2lf\n",X);
printf("Reajuste ganho: %.2lf\n",Y);
printf("Em percentual: %.0lf",Z);
printf(" %\n");
return 0;
}