Esempio n. 1
0
            public static void Main()
            {
                Console.WriteLine("Enter a word");
                string inputWord = Console.ReadLine();

                Console.WriteLine("Enter a sentence or list of words");
                string inputSentence = Console.ReadLine();

                RepeatCounter newRepeatCounter = new RepeatCounter(inputWord, inputSentence);

                int count = newRepeatCounter.CountMatching();

                Console.WriteLine("The word *" + inputWord + "*" + " was entered " + count + " times");
            }