Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Application
- {
- class MainClass
- {
- public static void Main()
- {
- Console.WriteLine("Enter password");
- string a = Console.ReadLine();//Считывание пароля первый раз
- while (a != "root")//считывать пароль, пока пароль не правильный
- {
- Console.WriteLine("Wrong password, try again");
- a = Console.ReadLine();
- }
- Console.WriteLine("Correct");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement