static void Main() { Console.WriteLine("Please Enter word"); string inputW = Console.ReadLine(); string inputWord = ""; string finalResult = ""; do { Console.WriteLine("Please Enter Anagram of first word (to end game ENTER: stopNow"); inputWord = Console.ReadLine(); testWord word = new testWord(inputWord, inputW); finalResult = word.test(inputWord, inputW); Console.WriteLine(finalResult); } while (inputWord != "stopNow"); }
static void Main() { testWord word = new testWord(); string anagram = ""; string testLine = ""; string testLine1 = ""; do { Console.WriteLine("Please Enter Anagram"); anagram = Console.ReadLine(); testLine = word.test(anagram); Console.WriteLine(testLine); } while (anagram != "stop"); // Main(); }