borisova936935

Untitled

Nov 12th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function birthdayParty(input){
  2.  
  3. let rent = Number(input);
  4.  
  5. let cakePrice = rent * 0.20;
  6. let drinksPrice = cakePrice - (cakePrice * 0.45)
  7. let animatorPrice = rent / 3;
  8.  
  9. let sum = rent + cakePrice + drinksPrice + animatorPrice;
  10. console.log(sum);
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment