Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSarpCycles02
- {
- class Program
- {
- static void Main(string[] args)
- {
- string accessWord = "exit";
- string password = "" ;
- Console.WriteLine("Вы стоите у терминала перед выходом из Убежища 13");
- while (password != accessWord)
- {
- Console.Write("Введите пароль чтобы открыть двери Убежища: ");
- password = Console.ReadLine();
- }
- Console.WriteLine("Вы слышите гул старых механизмов, открывающих двери родного Убежища.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement