Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function catExpenses(input) {
- let bed = Number(input[0]);
- let toilet = Number(input[1]);
- let food = toilet * 1.25;
- let toys = food / 2;
- let vet = toys * 1.1;
- let sum = (toilet + food + toys + vet) * 12 * 1.05 + bed;
- console.log(`${sum.toFixed(2)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement