예제 #1
0
        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;
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: Hoferj867/LABA-7
        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;
            }
        }