IvanITD

04.PasswordGuess

Jan 15th, 2024
86
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | Source Code | 0 0
  1. string password = Console.ReadLine();
  2.  
  3. if (password == "s3cr3t!P@ssw0rd")
  4. {
  5.     Console.WriteLine("Welcome");
  6. }
  7. else
  8. {
  9.     Console.WriteLine("Wrong password!");
  10. }
  11.  
Tags: C#
Comments
Add Comment
Please, Sign In to add comment