Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program
- {
- private static void Main(string[] args)
- {
- string keyword = "Exit";
- string password = "";
- while (password.ToUpper() != keyword.ToUpper())
- {
- Console.WriteLine("Введите пароль");
- password = Console.ReadLine();
- Console.Clear();
- }
- Console.WriteLine("Вы ввели верный пароль");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement