JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

8th

发布时间 2023-04-20 18:43:14作者: 晨观夕

银行利率问题

原先的顺序:

第n-1年本金=本金*利率*时间+本金-1000

第五年刚好取完

源代码

#include <iostream>
int main(){
float rate =0.0063;
float ben=0;
int months=12;
for(int i=0;i<5;i++){
ben=(ben+1000)/(1+rate*months);逆运算五次
}
printf("%0.2f",ben);
}

    本栏目推荐文章
  • Research in Computational Molecular Biology : 18th Annual International Conference, RECOMB 2014, Pittsburgh, PA, USA, April 2-5, 2014, Proceedings | Clc
  • 数据通信与网络 4th
  • Spring Boot学习随笔- 第一个Thymeleaf应用(基础语法th:,request、session作用域取值)
  • 2023 Dec. 16th
  • 线路编码方案 —— 《数据通信与网络》4th
  • ICBCB 生物信息学与计算生物学国际会议(The 10th International Conference on Bioinformatics and Computational Biology,ICBCB 2022)
  • The 13th Shandong ICPC Provincial Collegiate Programming Contest
  • The 13th Shandong ICPC Provincial Collegiate Programming Contest
  • 88th 2023/12/2 模拟赛总结57
  • 87th 2023/11/25 一次反思
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们