Write a program that asks a user for their birth year encoded as two digits (like "62") and for the current year, also encoded as two digits (like "99"). The program is to correctly write out the users age in years.
Year of Birth:62
Current year: 11
Your age: 49
----- another run of the program --------
Year of Birth:62
Current year:00
Your age: 38
Comments
Leave a comment