Explanation:
Here by will take the birth year, cy will put current year in it. The mathematical logic to find the age is to subtract birth year from current year. After generating age we are able to display it.
Output
Exercise:
Find the age of user that he will be after 4 year.
If you have any doubt, let me know...