using System;
namespace _9._Date_birth._Current_age
{
class Program
static void Main(string[] args)
var today = DateTime.Today;
DateTime birthDate = new DateTime(1989, 09, 10);
var age = today.Year - birthDate.Year;
if (birthDate > today.AddYears(-age))
age--;
Console.WriteLine(age);
}
// Given a date of birth, calculate the age of a person.
// Input: 10, 09, 1989
// Output: 29