>[info]通过月利润计算奖金
~~~C
#include <stdio.h>
int main() {
int i;
double sum,one=10*0.1,two=one+10*0.075,four=two+20*0.05,six=four+20*0.03,ten=six+40*0.015;
printf("请输入月利润:\n");
scanf("%d",&i);
i/=10000;
if(i<=10) sum = i*0.1;
else if(i<=20) sum = one+(i-10)*0.075;
else if(i<=40) sum = two+(i-20)*0.05;
else if(i<=60) sum = four+(i-40)*0.03;
else if(i<=100) sum = six+(i-60)*0.015;
else sum = ten+(i-100)*0.01;
sum*=10000;
printf("奖金=%1f\n", sum);
return 0;
}
~~~
- C语言模块
- 基础入门
- 各种变量类型
- 条件编译
- 100例
- day1
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- day2
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- day3
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- day4
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- day5
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- day6
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- day7
- 1.c
- 2.c
- 3.c
- 4.c
- 5.c
- 6.c
- 7.c
- 8.c
- 9.c
- 10.c
- linux基础知识
- 目录
- 系统设置
- ftp管理
- ftp-auth
- 进程
- ssh登录
- 权限属性
- 用户/用户组
- 安装命令
- 数据库操作
- 虚拟机vmvare-tools安装
- VI命令
- 上传下载
- error
- 虚拟机mac