习题5.4
来源:互联网 发布:风险加权资产计算法 编辑:程序博客网 时间:2024/06/10 19:27
#include <stdio.h>#include <stdlib.h>int main(){ int year; float rate,capital,depoist; printf("请输入存入金额,年份 capital,year:"); scanf("%f%d",&capital,&year); if(year=1) { rate=0.025000; depoist=capital+capital*(rate*0.001)*year; printf("depoist=%f\n",depoist); } if(year=2) { rate=0.023000; depoist=capital+capital*rate*year; printf("depoist=%f\n",depoist); } if(year=3) { rate=0.027000; depoist=capital+capital*rate*year; printf("depoist=%f\n",depoist); } if(year=5) { rate=0.028000; depoist=capital+capital*rate*year; printf("depoist=%f\n",depoist); } if(year=8) { rate=0.03000; depoist=capital+capital*rate*year; printf("depoist=%f\n",depoist); } return 0;}
阅读全文
0 0
- 习题5.4
- 习题5.4
- 习题5.4
- 习题5 5.4
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 《大话设计模式》java实现之装饰器模式
- android 判断是否在debug模式
- 前端基础-01-html标签
- linux 哲学家进餐问题
- Apache配置Let’s Encrypt免费SSL证书
- 习题5.4
- 微信第三方登录(静默授权和非静默授权)实例步骤
- python lambda
- POS机系统 秘钥体系
- CSS3篇--rotate/translate等导致字体模糊
- 分布式文件系统—FastDFS
- [喵咪海外部署]海外文件分发方案演进
- 亚信实习日记3
- 配置 VIM 英语字典