Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function costs(input){
- let anAnnualFee = Number(input[0]);
- let priceSneakers = anAnnualFee - (anAnnualFee * 0.40);
- let priceClothing = priceSneakers - (priceSneakers * 0.20);
- let priceBall = (1 / 4) * priceClothing;
- let priceAccessories = (1 / 5) * priceBall ;
- let payments = anAnnualFee + priceSneakers + priceClothing + priceBall + priceAccessories;
- console.log(payments);
- }
Advertisement
Add Comment
Please, Sign In to add comment