Advertisement
Spocoman

Basketball Equipment

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