Skip to content

About

A simple C# console application that calculate that calculates a user's age based on their date of birth. Includes detailed age output in year and days.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

🕒 Age Calculator (C# Console App)

A simple and beginner-friendly C# console application that calculates your age based on your birth date. This project asks for the user's year, month, and day, and then calculates:

✔ Age in years ✔ Total days lived ✔ Approx age in years (with decimals)

This project is perfect for beginners learning:

C# basics

Console input/output

DateTime

TimeSpan

Basic logic & condition checking


🚀 Features

User inputs birth year, month, and day

Auto-calculates age

Accounts for whether birthday passed this year

Shows age in years, days, and decimal format

Clean & simple code


🧩 Code Example

// Your full code here (paste your program)


📌 How to Run

  1. Clone the repository

  2. Open the project in any C# IDE (VS Code, Visual Studio, or online GDB)

  3. Run the program

  4. Enter your birth date

  5. Get your age instantly!


📁 Folder Structure

AgeCalculator/ ├── Program.cs ├── README.md └── .gitignore


🏷 Topics (GitHub Tags)

csharp age-calculator beginner-project console-app datetime simple-csharp

About

A simple C# console application that calculate that calculates a user's age based on their date of birth. Includes detailed age output in year and days.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages