Advertisement
Spocoman

08. Basketball Equipment

Nov 30th, 2021 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function basketballEquipment (input){
  2.     let tuitionFee = Number(input);
  3.     let shoesPrice = tuitionFee * 0.6;
  4.     let teamClothes = shoesPrice * 0.8;
  5.     let ball = teamClothes / 4;
  6.     let accessories = ball / 5;
  7.  
  8.     let sum = tuitionFee + shoesPrice + teamClothes + ball + accessories;
  9.        
  10.     console.log(sum);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement