The organizers will give chocolates corresponding to the age of the children. So a family with a four-year old and a 7-year old child will get 11 chocolates.
However, if any of the child in that family is a teenager (between 13 to 19 inclusive), then that family receives a total of 40 chocolates.
Complete the method solve that takes as parameters 2 integers, each storing the age of a child. You have to print the number of chocolates the family will get.
Answers
Answered by
0
Answer:
hfj hfj hfj hfb hgvh hfj hv h. hj hv h
Similar questions