Question: age and years _ to _ add are read from input. calculate _ future _ age ( ) has two parameters my _ age and

age and years_to_add are read from input. calculate_future_age() has two parameters my_age and years, and outputs the sum of my_age and years. Call calculate_future_age() to output the sum of age and years_to_add without modifying age.
Click here for exampleEx: If the input is:
52
66
then the output is:
Age in 66 years: 118
Age now: 52

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!