Write a program in which the user inputs their name, age, and the current year. Using this information, the program should calculate the user’s birth year and display the following: “Hi [user’s name]! Nice to meet you! You were born in [user’s birth year]!”
Note: The current year and the user’s name, age, and birth year should all be stored in variables.
Previous Section
Types of VariablesNext Section
Variables QuizCopyright © 2021 Code 4 Tomorrow. All rights reserved.
If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.