Hello, I would like to know how I could do in cmd so that when someone writes something other than tree, a msg says "what you wrote" was not recognized ...
Hello, I would like to know how I could do in cmd so that when someone writes something other than tree, a msg says "what you wrote" was not recognized ...
Just do one condition, simple
string input = Console.ReadLine();
if (input == "tree")
{
Console.WriteLine("tree");
}
else
{
Console.WriteLine("o que escreveu não foi reconhecido!");
}