using System; namespace DateChecker { class Class1 { [STAThread] static void Main(string[] args) { class Introduction { static void Intro() { Console.WriteLine("Welcome to the DateChecker Program!"); Console.WriteLine("***********************************"); } class Input_Day { static void ValidDay(out string InputDay) { InputDay = "Please enter the day of the month (DD): "; int sUserDay = Int32.Parse(Console.ReadLine()); } class Input_Month { static void ValidMonth(out string InputMonth) { InputMonth = "Please enter the month (MM): "; int sUserMonth = Int32.Parse(Console.ReadLine()); } class Input_Year { static void ValidYear(out string InputYear) { InputYear = "Please enter the year (YYYY): "; int sUserYear = Int32.Parse(Console.ReadLine()); } } switch(Input_Month) { case 0: case 2: case 4: case 6: case 7: case 9: case 11: sUserDay = case 0,2,4,6,7,9,11 <= 31; //If it has 31 days in the month break; case 3: case 5: case 8: case 10: sUserDay = case 3,5,8,10 <= 30; //If it has 30 days in the month break; default: sUserDay = default <= 28; break; } } } } } }