logo CodeStepByStep logo

retirement_age

Language/Type: C parameters user input
Related Links:
Author: Allison Obourn (on 2020/09/14)

Write a function called retirement_age that prompts the user for their age and prints out how many years until they can retire. Assume that they can retire at 65. Your output should look like this:

How old are you? 40
You have 25 years left until retirement.
Function: Write a C function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.