Apple sharing. N
students take K
apples and distribute them among each other evenly. The remaining (the undivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket?
The program reads the numbers N
and K
. It should print the two answers for the questions above.
Input |
Output |
6 |
8 |
1 |
10 |
5 |
5 |
4 |
0 |