Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function basketballEquipment (input) {
- let fee = Number(input[0]);
- let shoes = fee * 0.6;
- let dress = shoes * 0.8;
- let ball = dress / 4;
- let accessories = ball / 5;
- let totalSum = fee + shoes + dress + ball + accessories;
- console.log(`${totalSum.toFixed(2)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement