*/
#include <iostream.h>
void main()
{
double I,y;
int c;
cout<<"请输入利润:";
cin>>I;
c=I/10;
switch(c)
{
case 0:
y=I*0.1;break;
case 1:
y=10*0.1+(I-10)*0.075;break;
case 2:
case 3:
y=1.75+(I-20)*0.05;break;
case 4:
case 5:
y=2.75+(I-40)*0.03;break;
case 6:
case 7:
case 8:
case 9:
y=3.35+(I-60)*0.015;break;
default:
y=3.95+(I-100)*0.01;break;
}
cout<<"对应的提成为:"<<y<<endl;
}