LearnPy Hub
← Operators problems
Easy

What Is Left Over?

Read a number of sweets and a number of children. Print how many each child gets (//) and how many are left over (%).

Input

Two integers.

Output

Two lines.

Sample 1

Input
17
5
Output
3
2

Sample 2

Input
10
2
Output
5
0
solution.py
Output appears here
What Is Left Over? · Python practice problem · LearnPy Hub