|
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <windows.h>
- int main()
- {
- int bd=500,profit;
- printf("输入利润:");
- scanf("%d",&profit);
- if(profit<=1000)
- ;
- else if(profit>1000&&profit<=2000)
- bd+=bd*0.1;
- else if(profit>2000&&profit<=5000)
- bd+=bd*0.15;
- else if(profit>5000&&profit<=10000)
- bd+=bd*0.2;
- else
- bd+=bd*0.25;
- printf("员工的工资是:%d\n",bd);
- system("pause");
- return 0;
- }
复制代码 |
|