static void Main(string[] args) { Console.WriteLine("Input sentence:"); string sentence = Console.ReadLine(); WordReverser w = new WordReverser(); Console.WriteLine(w.ReverseWord(sentence)); Console.Read(); }