public static void Main()
Console.WriteLine("Days in a month in C#\n");
Console.WriteLine("Enter year");
int year = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter month");
int month = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Days in the month:" + DateTime.DaysInMonth(year, month));