public static void Main()
string sPassword = "open1234";
bool isPasswordCorrect = false;
Console.WriteLine("Hello User");
while(!isPasswordCorrect)
string sInput = Console.ReadLine().ToLower();
isPasswordCorrect = true;
Console.WriteLine("Password correct");
Console.WriteLine("Access denied");
string sPassword = "open1234";
bool isPasswordCorrect = true;
Console.WriteLine("Hello User");
while(!isPasswordCorrect)
string sInput = Console.ReadLine().ToLower();
if(sInput != sPassword && iCount < 3)
Console.WriteLine("Access denied");
Console.WriteLine("Account blocked");
isPasswordCorrect = false;
Console.WriteLine("Password correct");