public static void Main()
Console.WriteLine("Введите год");
int a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Введите номер месяца");
int b = Convert.ToInt32(Console.ReadLine());
int days = DateTime.DaysInMonth(a, b);
Console.WriteLine("{0} високосный {1}", a % 400 == 0 || a % 100 != 0 && a % 4 == 0 ? "Год" : "Не", days);