Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int carton = cookies / 72;
- int amountLeft = cookies % 72;
- int box = amountLeft / 12;
- amountLeft = amountLeft % 12;
- int cookie = amountLeft / 1;
- int price = (carton * 864 + box * 180 + cookie * 25);
- return price;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement