web123456

[C Language] The bonuses issued by the company are based on the profit commission.

The correct thing is this
#include<>
#include <>
int main()
{
int I,J;
printf("Please enter the profit I of the month:");
scanf("%d",&I);
if(I<=100000)
J=I*0.1;
else if(I<=200000)
J=100000*0.1+(I-100000)*0.075;
else if(I<=400000)
J=100000*0.1+(200000-100000)*0.075+(I-200000)*0.05;
else if(I<=600000)
J=100000*0.1+(200000-100000)*0.075+(400000-200000)*0.05+(I-600000)*0.03;
else if(I<=1000000)
J=100000*0.1+(200000-100000)*0.075+(400000-200000)*0.05+(600000-400000)*0.03+(I-600000)*0.015;
else
J=100000*0.1+(200000-100000)*0.075+(400000-200000)*0.05+(600000-400000)*0.03+(1000000-600000)*0.015+(I-1000000)*0.01;
printf("The bonus deserves is: %d\n",J);
system("pause");
return 0;
}