SHARE
TWEET

Untitled

a guest Jan 25th, 2020 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function calculatesHowMuchMoneyForFuelAreNeeded(distance, passengers, priceOfOneLitterDiesel) {
  2.     let neededFuel = (distance / 100) * 7;
  3.     neededFuel += passengers * 0.100;
  4.     let money = neededFuel * priceOfOneLitterDiesel;
  5.     console.log(`Needed money for that trip is ${money}lv.`);
  6. }
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