Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. int carton = cookies / 72;
  2. int amountLeft = cookies % 72;
  3. int box = amountLeft / 12;
  4. amountLeft = amountLeft % 12;
  5. int cookie = amountLeft / 1;
  6. int price = (carton * 864 + box * 180 + cookie * 25);
  7. return price;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement