Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function vegetableMarket(input) {
- let vegetablesBg = parseFloat(input[0]);
- let fruitsBg = parseFloat(input[1]);
- let vegetablesKg = parseFloat(input[2]);
- let fruitsKg = parseFloat(input[3]);
- let results =(((vegetablesBg * vegetablesKg) + (fruitsBg * fruitsKg)) / 1.94);
- console.log(`${results.toFixed(2)}`)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement