想一想就感觉到生活还是充满非常多正能量的
2015-12-20 14:13
253 查看
苦逼的程序猿!
没事就意淫下。想想每天都是正能量!娶妻生子买房买车不是问题啊!
没事就意淫下。想想每天都是正能量!娶妻生子买房买车不是问题啊!
function showMoney(basemoney,increase,years){ var amountMoney=0; for(var i=1;i<years+1;i++){ console.log("第"+i+"年的工资"+basemoney+"元"); basemoney+=basemoney*increase; amountMoney+=basemoney*12; console.log("第"+i+"年的总工资"+basemoney*12+"元"); } console.log("这是你"+years+"年总共的工资为"+amountMoney+"元"); return amountMoney; } function useMoney(basemoney,increase,years){ var amountMoney=0; for(var i=1;i<years+1;i++){ console.log("第"+i+"每一个月的花费"+basemoney+"元"); basemoney+=basemoney*increase; amountMoney+=basemoney*12; console.log("从工作到第"+i+"年总共花费"+basemoney*12+"元"); } console.log("这是你"+years+"年总共的开销为"+amountMoney+"元"); return amountMoney; }
相关文章推荐
- [LeetCode169]Majority Element求一个数组中出现次数大于n/2的数
- 死磕Spring系列之二,bean标签的解析和BeanDefinition的注册
- 软件革命
- LKD: Chapter 5 System Call
- 第四大原因:更清晰的代码,Doctype
- ajax请求操作实例
- 【Nginx】不中断现有连接,平滑升级Nginx
- OSGI系列 权重分配
- Android传感器之绘图篇——Handler学习
- HTML5离线存储原理及实现:
- 通过BFS 和 DFS两种方法找无向图的连通分量
- android系列之popwindow简单应用
- 基于jQuery和CSS3制作响应式水平时间轴附源码下载
- 我看Java虚拟机(7)---解释器和JIT编译器
- 【数学】线性代数的本质
- 《 C语言程序设计(第2版)》 读书笔记
- 关于排列(poj1833)问题
- Codeforces 609E Minimum spanning tree for each edge 树链剖分+RMQ(st算法)+最小生成树
- 编译caffe时,遇到问题:无法打开文件“libboost_thread-vc120-mt-gd-1_58.lib
- 使用Pagination.js进行前台页面的分页处理