Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function suppliesForSchool(input) {
- let pens = Number(input[0]) * 5.8;
- let markers = Number(input[1]) * 7.2;
- let detergent = Number(input[2]) * 1.2;
- let sum = pens + markers + detergent;
- console.log(sum * 0.75);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement