A child's parents promised to give the child $10 on her 12th birthday and double the gift on every subsequent birthday until the annual gift exceeded $1000. Write a c++ program to determine how old the child will be when the last amount is given and the total amount the child will have received.
Comments
Leave a comment