Share the Cookies (Baby Steps)
You have cookies cookies and kids kids. Every kid gets the same number of whole cookies, and the rest stay in the jar. Print how many each kid gets and how many are left, with one space between.
Input: Two integers: cookies (0 to 1000) and kids (1 to 20).
Output: One line: <each <left.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- / between two whole numbers gives the whole part: 17 / 5 is 3.