A tough programmer! It's okay. Just masturbate! Think about positive energy every day! It's not a problem to buy a house and buy a car with a wife and children!
Function showmoney (basemoney, increase, years) {var amountmoney = 0; For (VAR I = 1; I <years + 1; I ++) {console. log ("the" + I + "year's salary" + basemoney + "Yuan"); basemoney + = basemoney * increase; amountmoney + = basemoney * 12; console. log ("no." + I + "total salary per year" + basemoney * 12 + "RMB");} console. log ("this is you" + years + "the total annual salary is" + amountmoney + "Yuan"); Return amountmoney;} function usemoney (basemoney, increase, years) {var amountmoney = 0; For (VAR I = 1; I <years + 1; I ++) {console. log ("the" + I + "monthly cost" + basemoney + "Yuan"); basemoney + = basemoney * increase; amountmoney + = basemoney * 12; console. log ("from work to the" + I + "total cost per year" + basemoney * 12 + "Yuan");} console. log ("this is your" + years + "Total overhead for the year is" + amountmoney + "Yuan"); Return amountmoney ;}
Think about it and feel that life is still full of positive energy.