当前位置:网站首页>8.8.2-PointersOnC-20220214
8.8.2-PointersOnC-20220214
2022-07-03 03:35:00 【fleet1126】
#include<stdio.h>
#include<float.h>
float tax_information[3][6]={
{0,23350,56550,117950,256500,DBL_MAX},
{0,3502.5,12798.5,31832.5,81710.5},
{0.15,0.28,0.31,0.36,0.396}
};
float single_tax(float income);
int main(){
printf("%f\n",single_tax(9999.99));
return 0;}
//
float single_tax(float income){
int tag=1;
for(;income>tax_information[0][tag];tag++);
tag--;
return tax_information[1][tag]+(income-tax_information[0][tag])*tax_information[2][tag];
}边栏推荐
- PHP generates PDF tcpdf
- 递归:深度优先搜索
- The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post
- softmax的近似之NCE详解
- [set theory] partial order relation (partial order relation definition | partial order set definition | greater than or equal to relation | less than or equal to relation | integer division relation |
- Pytorch配置
- 递归:一维链表和数组
- Nce detail of softmax approximation
- Leetcode: dynamic planning template
- LVGL使用心得
猜你喜欢

Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet

Vs 2019 installation and configuration opencv

MongoDB安装 & 部署

Limit of one question per day

js中#号的作用

渤、黄海的潮汐特征

PAT乙级“1104 天长地久”DFS优化思路

Introduction à mongodb

900w+ data, from 17s to 300ms, how to operate

Use three JS make a simple 3D scene
随机推荐
Yolov5 project based on QT
navicat 导出数据库的表结构
[mathematical logic] normal form (conjunctive normal form | disjunctive normal form | major item | minor item | maximal item | minor item | principal conjunctive normal form | principal disjunctive no
Réglez la hauteur et lancez le système. Currenttimemillis catton
Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence
Solve high and send system Currenttimemillis Caton
User value is the last word in the competition of mobile phone market
2020-01-01t00:00:00.000000z date format conversion
Hutool动态添加定时任务
MongoDB简介
Don't use the new Dede collection without the updated Dede plug-in
将时间戳转为指定格式的时间
docker安装及启动mysql服务
Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
Pat class B "1104 forever" DFS optimization idea
[AI practice] Application xgboost Xgbregressor builds air quality prediction model (I)
@Accessors注解作用指定前缀遵守驼峰命名
Model transformation onnx2engine
Vs Code configure virtual environment
释放数据力量的Ceph-尚文网络xUP楠哥