Advertisement
dragonbs

PasswordGuess

Oct 22nd, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _04.PasswordGuess
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             const string PASSWORD = "s3cr3t!P@ssw0rd";
  10.  
  11.             string word = Console.ReadLine();
  12.  
  13.             if (word == PASSWORD)
  14.             {
  15.  
  16.                 Console.WriteLine("Welcome");
  17.             }
  18.             else
  19.             {
  20.                 Console.WriteLine("Wrong password!");
  21.             }
  22.  
  23.            
  24.         }
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement