当前位置:网站首页>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];
}
边栏推荐
- 将时间戳转为指定格式的时间
- [embedded module] OLED display module
- [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
- 递归:一维链表和数组
- The XML file generated by labelimg is converted to VOC format
- 机械臂速成小指南(八):运动学建模(标准DH法)
- redis高级应用【密码防护、数据持久化、主从同步、哨兵模式、事务】【暂未完成(半成品)】
- Bigvision code
- 没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
- Convert binary stream to byte array
猜你喜欢
Ffmpeg one / more pictures synthetic video
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
MongoDB安装 & 部署
Limit of one question per day
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf
Téléchargement et installation du client Filezilla
ffmpeg之 一张/多张图片合成视频
Ansible introduction [unfinished (semi-finished products)]
900W+ 数据,从 17s 到 300ms,如何操作
Ansible简介【暂未完成(半成品)】
随机推荐
ffmpeg之 一张/多张图片合成视频
js中#号的作用
【DRM】DRM bridge驱动调用流程简单分析
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post
Stepping on pits and solutions when using inputfilter to limit EditText
VS克隆时显示403错误
UMI route interception (simple and rough)
MongoDB简介
softmax的近似之NCE详解
900w+ data, from 17s to 300ms, how to operate
解决高并发下System.currentTimeMillis卡顿
可分离债券与可转债
Docker install and start MySQL service
Pat class B common function Usage Summary
ffmpeg下载安装教程及介绍
Mysql Mac版下载安装教程
Using jasmine to monitor constructors - spying on a constructor using Jasmine
The series of hyperbolic function in daily problem
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
Applet get user avatar and nickname