Advertisement
Spocoman

09. Yard Greening

Aug 22nd, 2024
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function yardGreening (input){
  2.     let squareMeters = Number(input[0]);
  3.     let price = squareMeters * 7.61;
  4.     let discount = price * 0.18;
  5.     let finalPrice = price - discount;
  6.  
  7.     console.log (`The final price is: ${finalPrice} lv.`);
  8.     console.log(`The discount is: ${discount} lv.`);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement