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 _1._3._8._1._2
- {
- class Program
- {
- static void Main(string[] args)
- {
- string Pass;
- int i;
- int x = 5;
- for (i=0; i<5; i++)
- {
- Console.WriteLine("Введите пароль ");
- Pass = Console.ReadLine();
- if (Pass== "1234")
- {
- Console.WriteLine("Пароль введен верно!");
- break;
- }
- x--;
- Console.WriteLine("Осталось попыток ввода пароля: " + x);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement