Advertisement
Guest User

PB - Yard Greening

a guest
Apr 15th, 2020
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(arg1) {
  2.     let area = Number(arg1);
  3.     let price = Number(arg1 * 7.61);
  4.     let discount = Number(price * 0.18);
  5.     let finalPrice = Number(price - discount);
  6.     console.log('The final price is: ${finalPrice.toFixed(2)} lv.');
  7.     console.log('The discount is: ${discount.toFixed(2)} lv.');
  8. }
  9.  
  10. solve('540')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement