[Solved] C# How to have it read words and output results [closed]


I totally agree with the other answers and comments, but for convenience here is the code

public class Program
{
    public static void Main()
    {
        Console.WriteLine("Who is the best?");

        var answer = Console.ReadLine();

        if (answer.Equals("tim")){
            Console.WriteLine("You're right!")
        } else {
            Console.WriteLine("Wrong!")
        }
    }
}

1

solved C# How to have it read words and output results [closed]