Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- string passwordInput;
- string correctPassword = "12345";
- int countAttemp = 3;
- for(int i = 0; i < countAttemp; i++)
- {
- Console.Write("Введите пароль: ");
- passwordInput = Console.ReadLine();
- if(passwordInput == correctPassword)
- {
- Console.WriteLine("Секретики!");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement