DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

4. Password Guess

using System;

namespace Password_Guess
{
internal class Program
{
    static void Main(string[] args)
    {
        string password = Console.ReadLine();

        if (password == "s3cr3t!P@ssw0rd")
        {
            Console.WriteLine("Welcome");
        }
        else
        {
            Console.WriteLine("Wrong password!");
        }
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)