Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function shopingTime(input){
- let beakTime = Number(input[0]);
- let periferiaPrice = Number(input[1]);
- let programPrice = Number(input[2]);
- let frappePrice = Number(input[3]);
- let relaxTime = beakTime - 5 - 6 - 4;
- let spendMoney = frappePrice + 3*periferiaPrice + 2*programPrice;
- console.log(spendMoney.toFixed(2));
- console.log(relaxTime)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement