string correctPassword = "12345";
Console.Write("Введіть пароль: ");
userInput = Console.ReadLine();
if (userInput != correctPassword)
Console.WriteLine("Неправильний пароль. Спробуйте ще раз.");
} while (userInput != correctPassword);
Console.WriteLine("Доступ дозволено. Вітаємо!");