Advertisement
Guest User

PB - Easter Lunch

a guest
Apr 20th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function calculation(arg1, arg2, arg3) {
  2.     koz = Number(arg1);
  3.     egg = Number(arg2);
  4.     kur = Number(arg3);
  5.    
  6.     let kozP = (arg1 * 3.20);
  7.     let eggP = (arg2 * (4.35 * 12));
  8.     let kurP = (arg3 * 5.40);
  9.     let eggbP = (arg2 * (0.15 * 12));
  10.     console.log = ((kozP + eggP + kurP + eggbP).toFixed(2));
  11. }
  12.  
  13. calculation(3, 2, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement