Uploaded by Samuel Oladiran

Age Calculator Program Instructions

advertisement
2. Write a program asking a person for their name and year of birth. It should calculate their age
and print an appropriate message.
Input
Processing
Output
Their name
Their birth
Use string to record their
name “name”
Congratulations “name” you
are x years old
Use it to record their birth
“Int”
Subtract the current year
(2025) by year of birth
Record this int as x
Print. Congrats “name”
You are “x” years old
Download