static void Main(string[] args) { int select; Console.Write("Choose the task from 1 to 3: "); select = int.Parse(Console.ReadLine()); Console.WriteLine(); switch (select) { case 1: Console.WriteLine("The first task: \n"); First.Execute(); break; case 2: Console.WriteLine("The second task: \n"); Second.Execute(); break; case 3: Console.WriteLine("The third task: \n"); Third.Execute(); break; default: break; } }
static void Main(string[] args) { int select; Console.Write("какое задание от 1 до 2: "); select = int.Parse(Console.ReadLine()); Console.WriteLine(); switch (select) { case 1: Console.WriteLine("The first task: \n"); First.Execute(); break; case 2: Console.WriteLine("The second task: \n"); Second.Execute(); break; } }