SHARE
TWEET

Untitled

a guest Mar 15th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function pokrivki(amount,length,width){
  2.     let pokrivki = amount * ((length + 0.6) * (width + 0.6));
  3.     let kareta = amount * Math.pow(length / 2, 2);
  4.  
  5.     let pokrivkiprice = pokrivki * 7;
  6.     let karetaprice = kareta * 9;
  7.  
  8.     let sumausd = (pokrivkiprice + karetaprice).toFixed(2);
  9.     let sumabgn = ((pokrivkiprice + karetaprice)*1.85).toFixed(2);
  10.    
  11.     console.log(`${sumausd} USD`);
  12.     console.log(`${sumabgn} BGN`)
  13. }
  14. pokrivki(5, 1.00, 0.50);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top