Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function foodDelivery(input){
- let chickenMenu = Number(input[0]);
- let fishMenu = Number(input[1]);
- let vegetarianMenu = Number(input[2]);
- let sum = (chickenMenu * 10.35 + fishMenu * 12.40 + vegetarianMenu * 8.15) * 1.2 + 2.5;
- console.log(sum);
- }
- Taрикатско решение:)
- function foodDelivery(input){
- console.log((Number(input[0]) * 10.35 + Number(input[1]) * 12.40 + Number(input[2]) * 8.15) * 1.2 + 2.5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement