Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(arg1) {
- let area = Number(arg1);
- let price = Number(arg1 * 7.61);
- let discount = Number(price * 0.18);
- let finalPrice = Number(price - discount);
- console.log('The final price is: ${finalPrice.toFixed(2)} lv.');
- console.log('The discount is: ${discount.toFixed(2)} lv.');
- }
- solve('540')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement