public static void Main()
Console.WriteLine("enter your age:");
Console.WriteLine("years:");
int ageYears = int.Parse(Console.ReadLine());
Console.WriteLine("months:");
int ageMonths = int.Parse(Console.ReadLine());
Console.WriteLine("weeks:");
int ageWeeks = int.Parse(Console.ReadLine());
Console.WriteLine("days:");
int ageDays = int.Parse(Console.ReadLine());
Console.WriteLine("you are " + (ageYears * 365 + ageMonths * 31 + ageWeeks * 7 + ageDays) + " days old!");
Console.WriteLine("enter your age in days");
int ageInDays = int.Parse(Console.ReadLine());
Console.WriteLine("you are " + (ageInDays / 365) + " years, " + (ageInDays % 365 / 31) + " months, " + (ageInDays % 365 % 31 / 7) + " weeks and " + (ageInDays % 365 % 31 % 7) + " days old!" );