Module: (C++) Workshop - 1 "Sofia the first". Linear Algorithms

Problem

4
/11

Rabbit Clever

Problem

Rabbit Clever is very fond of apples. He also likes to treat apples to his friends. Rabbit has N friends. He picked up apples in the garden K and wants to share them evenly between his friends. The non-dividing remainder remains in the basket. How many apples will each friend get and how many apples will he have in the basket?
Help Rabbit Clever calculate this information. Write a program for him.

The program receives two numbers at the input through a space: N - the number of friends of the rabbit (no more than 1000), K - the number of apples (no more than 1,000,000)
You need to output in the first line the number of apples that each friend will get.
The second line is the number of apples that will remain in the basket.