Untitled

mail@pastecode.io avatar
unknown
plain_text
12 days ago
410 B
10
Indexable
Never
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"]);
Leave a Comment