Advertisement
OldBeliver

Cycles_02

Mar 4th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CSarpCycles02
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string accessWord = "exit";
  14.             string password = "" ;
  15.             Console.WriteLine("Вы стоите у терминала перед выходом из Убежища 13");
  16.  
  17.             while (password != accessWord)
  18.             {
  19.                 Console.Write("Введите пароль чтобы открыть двери Убежища: ");
  20.                 password = Console.ReadLine();
  21.             }
  22.             Console.WriteLine("Вы слышите гул старых механизмов, открывающих двери родного Убежища.");
  23.             Console.ReadKey();
  24.         }
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement