about | help | code help+videos | done | prefs |
You work at a donut factory, where donuts are packaged in boxes of 12, and you get to eat the extra donuts. Given the number of donuts made today, return the number of donuts you get to eat. The number of donuts will be non-negative. extraDonuts(25) → 1 extraDonuts(17) → 5 extraDonuts(12) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy