Technology has advanced to the point where programming has become an essential part of our lives. We use software and applications for communication, entertainment, education, and work, and these are all built on programming languages.

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.
Share:

No comments:

Post a Comment

If you have any doubt, let me know...

Translate

Wikipedia

Search results