当前位置:网站首页>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];
}
边栏推荐
- Convert binary stream to byte array
- Vs 2019 configure tensorrt to generate engine
- Docker install and start MySQL service
- Use three JS make a simple 3D scene
- Unity3d RPG implementation (medium)
- FileZilla Client下載安裝
- 将时间戳转为指定格式的时间
- Pytorch multi card distributed training distributeddataparallel usage
- Limit of one question per day
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
猜你喜欢
MongoDB安装 & 部署
Ansible introduction [unfinished (semi-finished products)]
递归:一维链表和数组
umi 路由拦截(简单粗暴)
The series of hyperbolic function in daily problem
LVGL使用心得
User value is the last word in the competition of mobile phone market
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
Mysql Mac版下载安装教程
Leetcode: dynamic planning template
随机推荐
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
sigaction的使用
Leetcode: dynamic planning template
Converts a timestamp to a time in the specified format
Docker install and start MySQL service
float与0比较
递归使用和多维数组对象变一维数组对象
FileZilla Client下载安装
Application of derivative in daily question
二进制流转换成字节数组
New programmers use the isXXX form to define Boolean types in the morning, and are discouraged in the afternoon?
Introduction à mongodb
redis高级应用【密码防护、数据持久化、主从同步、哨兵模式、事务】【暂未完成(半成品)】
Download and install node, NPM and yarn
The series of hyperbolic function in daily problem
C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 05 data input and output
User value is the last word in the competition of mobile phone market
简易版 微信小程序开发之页面跳转、数据绑定、获取用户信息、获取用户位置信息
navicat 导出数据库的表结构
C # webrequest post mode, based on "basic auth" password authentication mode, uploads files and submits other data using multipart / form data mode