Пример #1
0
 static void Main(string[] args)
 {
     //EasySolutionOne.Execute();
     //EasySolutionTwo.Execute();
     //EasySolutionThree.Execute();
     //EasySolutionFour.Execute();
     //MediumSolutionOne.Execute();
     //MediumSolutionTwo.Execute();
     //MediumSolutionThree.Execute();
     HardSolutionOne.Execute();
     //HardSolutionTwo.Execute();
 }
        internal static void Execute()
        {
            Console.WriteLine("Let's turn some things into PigLatin.");
            Console.WriteLine("Enter a phrase:");
            string input = Console.ReadLine();

            if (String.IsNullOrWhiteSpace(input))
            {
                throw new Exception("Must provide words to be converted.");
            }
            HardSolutionOne converter = new HardSolutionOne();
            string          answer    = converter.ConvertToPigLatin(input);

            Console.WriteLine(answer);
        }