string text = Console.ReadLine(); if(text == "yes") { Console.WriteLine("Correct!"); } else { Console.WriteLine("Incorrect!"); }