Advertisement
lolblach333

Untitled

Apr 12th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 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 ConsoleApp10
  8. {
  9. class Program
  10. {
  11.  
  12. public static string Password { get; private set; }
  13.  
  14. static void Main(string[] args)
  15. {
  16. void case1()
  17. {
  18. Console.WriteLine("Ввидите ваше имя");
  19. string Name = Console.ReadLine();
  20. Console.WriteLine("Хотите указать Фамимлию");
  21. string Name1 = Console.ReadLine();
  22. switch (Name1)
  23. {
  24. case "Да":
  25. Console.WriteLine("Введите Фамилию");
  26. string Name2 = Console.ReadLine();
  27. break;
  28. case "Нет":
  29. Console.WriteLine("Хорошо");
  30. break;
  31. default:
  32. break;
  33. }
  34. }
  35. void case2()
  36. {
  37. Console.WriteLine("Введите пароль");
  38. string Password = Console.ReadLine(); // ВОТ ЭТУ ХУЙНЮ
  39.  
  40. }
  41. void case3()
  42. {
  43. int UserTry = 5;
  44. Console.WriteLine("Для смены пароля Введите старый пароль");
  45.  
  46. while (UserTry-- > 0)
  47. {
  48.  
  49. Console.WriteLine("Введите пароль");
  50. string UserPassword = Console.ReadLine();
  51.  
  52.  
  53. if (UserPassword == Password) //СЮДА
  54. {
  55.  
  56. Console.WriteLine("Ввидите новый пароль");
  57. string Password1 = Console.ReadLine();
  58. Password = Password1;
  59. }
  60. else
  61. {
  62. Console.WriteLine("Не-а");
  63. Console.WriteLine(UserTry + "попыток осталось");
  64. }
  65. if (UserTry < 0)
  66. {
  67. Console.WriteLine("Попытайтесь ввести пароль позже");
  68. break;
  69.  
  70.  
  71. }
  72. }
  73. }
  74. Console.WriteLine("===== Меню ==================");
  75. Console.WriteLine("1. Присвоить или сменить ФИО");
  76. Console.WriteLine("2. Установка пароля");
  77. Console.WriteLine("3. Сменна пароля");
  78. Console.WriteLine("4. Просмотр данных акаунта");
  79. Console.WriteLine("5. Exit");
  80.  
  81. while (true)
  82. {
  83. Console.WriteLine("Ввидите команду");
  84. string user = Console.ReadLine();
  85.  
  86. switch (user)
  87. {
  88. case "1":
  89. case1();
  90. break;
  91. case "2":
  92. case2();
  93. break;
  94. case "3":
  95. case3();
  96. break;
  97.  
  98. }
  99. }
  100. }
  101.  
  102. }
  103.  
  104.  
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement