Untitled
Anonymous
javascript
07/07/2024 9:33 AM
548 B
21
Indexable
function YardGreeningPrice(input) {
let squaremeters = Number(input[0]);
let yardGreeningPrice = squaremeters * 7.61;
let discount = yardGreeningPrice * 0.18;
let priceWithDiscount = yardGreeningPrice - discount;
console.log(`The final price is: ${priceWithDiscount.toFixed(2)} lv.`);
console.log(`The discount is: ${discount.toFixed(2)} lv.`);
}
YardGreeningPrice(["550"]);Editor is loading...
Leave a Comment