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 tasks
- {
- class Program
- {
- static void Main(string[] args)
- {
- string password = "атасменты";
- string userInput;
- int tryCount = 3;
- for (int i = 0; i < tryCount; i ++)
- {
- Console.WriteLine("Введите пароль.");
- userInput = Console.ReadLine();
- if (userInput == password)
- {
- Console.WriteLine("100 шагов на север от центральных ворот.");
- break;
- }
- else
- {
- Console.WriteLine("Попробуйте ещё раз.");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement