Liliana797979

Untitled

Oct 29th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Може ли помощ за задачата Pet SHOP?
  2. function solve(foodPerDogs, foodPerAnimals) {
  3. let foodPerDogs = Number(foodPerDogs);
  4. let foodPerAnimals = Number(foodPerAnimals);
  5. foodPerDogsPrice = 2.50 * dogs;
  6. foodPerAnimalsPrice = 4 * animals;
  7. totalPrice = foodPerDogsPrice + foodPerAnimalsPrice;
  8. console.log (totalPrice);
  9.  
  10. }
  11.  
  12. solve("5",
  13. "4");
Advertisement
Add Comment
Please, Sign In to add comment