How many nuts will be left after division

Report a typo

Some squirrels found some nuts and decided to divide them equally. You will get the number of squirrels and the number of nuts as input on separate lines. Find out how many nuts will be left after each of the squirrels takes an equal number of nuts. Print the result.

Tip: The best way to solve this task is to use the modulus operator – %.

Sample Input 1:

3
14

Sample Output 1:

2
Write a program in Python 3
# put your python code here
___

Create a free account to access the full topic