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


  • 相关阅读:
    1JavaScript的历史
    扯扯 require .js
    查看js 执行效率工具
    php 输入输出流
    词法分析096
    Python基础综合练习
    096
    大数据概述
    熟悉常用的Linux操作
    实验一、词法分析实验
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/5060820.html
Copyright © 2011-2022 走看看