Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function exscursion(input) {
- let people = Number(input[0]);
- let nights = Number(input[1]);
- let cards = Number(input[2]);
- let tickets = Number(input[3]);
- let total = people * (nights * 20 + cards * 1.60 + tickets * 6) * 1.25;
- console.log(`${total.toFixed(2)}`);
- }
Add Comment
Please, Sign In to add comment