0
点赞
收藏
分享

微信扫一扫

【无标题】年化计算

栖桐 2022-04-16 阅读 37
javascript
let year = 10;
let apr = 0.6;
let amount = 88; // Cake count

console.log("初始资金:\t\t" + amount);

for (let i = 1; i <= year; i++) {
    amount = amount * (1 + apr);
    console.log(i + "年后到期收益:\t\t" + parseInt(amount) + ", " + parseInt(amount * 8 * 6.3));
}
举报

相关推荐

【无标题】云计算作三

【无标题】云计算网络基础

【无标题】自动化测试

《无标题》

【无标题】[][]

【无标题】无日

【无标题】填空

【无标题】1

0 条评论