Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _04.PasswordGuess
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- const string PASSWORD = "s3cr3t!P@ssw0rd";
- string word = Console.ReadLine();
- if (word == PASSWORD)
- {
- Console.WriteLine("Welcome");
- }
- else
- {
- Console.WriteLine("Wrong password!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement