Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main(string[] args)
- {
- string password = "";
- int loginCounter = 1;
- while (!(password == "1234") & loginCounter <= 5)
- {
- Console.WriteLine("Введите пароль (Попытка №" + loginCounter + ")");
- password = Console.ReadLine();
- Console.Clear();
- loginCounter++;
- }
- if (password == "1234")
- {
- Console.WriteLine("Секретное сообщение");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment