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 ConsoleApp10
- {
- class Program
- {
- public static string Password { get; private set; }
- static void Main(string[] args)
- {
- void case1()
- {
- Console.WriteLine("Ввидите ваше имя");
- string Name = Console.ReadLine();
- Console.WriteLine("Хотите указать Фамимлию");
- string Name1 = Console.ReadLine();
- switch (Name1)
- {
- case "Да":
- Console.WriteLine("Введите Фамилию");
- string Name2 = Console.ReadLine();
- break;
- case "Нет":
- Console.WriteLine("Хорошо");
- break;
- default:
- break;
- }
- }
- void case2()
- {
- Console.WriteLine("Введите пароль");
- string Password = Console.ReadLine(); // ВОТ ЭТУ ХУЙНЮ
- }
- void case3()
- {
- int UserTry = 5;
- Console.WriteLine("Для смены пароля Введите старый пароль");
- while (UserTry-- > 0)
- {
- Console.WriteLine("Введите пароль");
- string UserPassword = Console.ReadLine();
- if (UserPassword == Password) //СЮДА
- {
- Console.WriteLine("Ввидите новый пароль");
- string Password1 = Console.ReadLine();
- Password = Password1;
- }
- else
- {
- Console.WriteLine("Не-а");
- Console.WriteLine(UserTry + "попыток осталось");
- }
- if (UserTry < 0)
- {
- Console.WriteLine("Попытайтесь ввести пароль позже");
- break;
- }
- }
- }
- Console.WriteLine("===== Меню ==================");
- Console.WriteLine("1. Присвоить или сменить ФИО");
- Console.WriteLine("2. Установка пароля");
- Console.WriteLine("3. Сменна пароля");
- Console.WriteLine("4. Просмотр данных акаунта");
- Console.WriteLine("5. Exit");
- while (true)
- {
- Console.WriteLine("Ввидите команду");
- string user = Console.ReadLine();
- switch (user)
- {
- case "1":
- case1();
- break;
- case "2":
- case2();
- break;
- case "3":
- case3();
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement