id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu methodsintro > extraDonuts
prev  |  next  |  chance

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)

int extraDonuts(int donuts) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy