Program to find the age of user


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.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.