zoukankan      html  css  js  c++  java
  • 想一想就感觉到生活还是充满非常多正能量的

    苦逼的程序猿!

    没事就意淫下。想想每天都是正能量!娶妻生子买房买车不是问题啊!

    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;
    }


  • 相关阅读:
    6-8 adaboost分类器2
    6-7 adaboost分类器1
    6-6 Haar特征3
    6-5 Haar特征2
    6-4 Haar特征1
    6-3 图片合成视频
    6-2 视频分解图片
    Linux操作系统六大优点
    Linux系统正则表达式用法笔记
    Linux系统正则表达式用法笔记
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/5060820.html
Copyright © 2011-2022 走看看