public static void Main()
Console.WriteLine("Enter you birthday: DD.MM.YYYY");
string birthDay = Console.ReadLine();
string userYear = birthDay.Substring(6, 4);
int userYearInt = int.Parse(userYear);
string userMonth = birthDay.Substring(3, 2);
int userMonthInt = int.Parse(userMonth);
string userDay = birthDay.Substring(0, 2);
int userDayInt = int.Parse(userDay);
string userMonthStr = "January";
userMonth = userMonthStr;
string userMonthStr = "February";
userMonth = userMonthStr;
string userMonthStr = "March";
userMonth = userMonthStr;
string userMonthStr = "April";
userMonth = userMonthStr;
string userMonthStr = "May";
userMonth = userMonthStr;
string userMonthStr = "June";
userMonth = userMonthStr;
string userMonthStr = "July";
userMonth = userMonthStr;
string userMonthStr = "August";
userMonth = userMonthStr;
string userMonthStr = "September";
userMonth = userMonthStr;
string userMonthStr = "October";
userMonth = userMonthStr;
string userMonthStr = "November";
userMonth = userMonthStr;
string userMonthStr = "December";
userMonth = userMonthStr;
Console.WriteLine("Wrong input.");
Console.WriteLine("User birthday:\nYear: {0}\nMonth: {1}\nDay: {2}", userYear, userMonth, userDay);
int currentYearInt = DateTime.Now.Year;
Console.WriteLine("Current year is: {0}", currentYearInt);
int currentMonthInt = DateTime.Now.Month;
Console.WriteLine("Current month is: {0}", currentMonthInt);
int currentDayInt = DateTime.Now.Day;
Console.WriteLine("Current day is: {0}", currentDayInt);
userAge = currentYearInt - userYearInt;
var test = DateTime.Today;
if (test.Day >= userDayInt && test.Month >= userMonthInt)
Console.WriteLine("User age is: {0}", userAge);
int ageAfterTenYears = 0;
ageAfterTenYears = userAge + 10;
Console.WriteLine("After ten years user will be {0} years old.", ageAfterTenYears);
Console.WriteLine("User age is: {0}", userAge - 1);
int ageAfterTenYears = 0;
ageAfterTenYears = userAge + 10;
Console.WriteLine("After ten years user will be {0} years old.", ageAfterTenYears - 1);