Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _02._Password
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string username = Console.ReadLine();
- string password = Console.ReadLine();
- //повтаряме: въвеждаме парола
- //стоп: въведената парола == password
- //продължаваме: въведената парола != password
- string enteredPassword = Console.ReadLine();
- while (enteredPassword != password)
- {
- enteredPassword = Console.ReadLine();
- }
- Console.WriteLine($"Welcome {username}!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement