Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pokrivki(amount,length,width){
- let pokrivki = amount * ((length + 0.6) * (width + 0.6));
- let kareta = amount * Math.pow(length / 2, 2);
- let pokrivkiprice = pokrivki * 7;
- let karetaprice = kareta * 9;
- let sumausd = (pokrivkiprice + karetaprice).toFixed(2);
- let sumabgn = ((pokrivkiprice + karetaprice)*1.85).toFixed(2);
- console.log(`${sumausd} USD`);
- console.log(`${sumabgn} BGN`)
- }
- pokrivki(5, 1.00, 0.50);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement