Take age or year of birth as an input from the user. Store the input in one variable. Your program should detect whether the entered input is age or year of birth and tell the user when they will turn 100 years old.
Here are a few instructions that you must have to follow: Do not use any type of modules like DateTime or date utils.
Users can optionally provide a year, and your program must tell their age in that particular year.
Your code should handle all sort of errors like:
You are not yet born. You seem to be the oldest person alive. You can also handle any other errors, if possible!