Join Regular Classroom : Visit ClassroomTech

Coding Questions | Quiz Competition | Codewindow.in

Tent is participating in a quiz competition and two teams had scored the same marks. He has to answer the last question to be the winner. Given the number of children x. the intervals at which all the children were born Y, and their sum of ages Z. Write a program to help Tent find the age of the youngest child and make him win.

Example:
Input:
5
3
50

Output:
4

Explanation:
The ages of those 5 children are 4 7 10 13 16.

Solution:

Coming....
You Missed
Also Checkout