int i = 3;
string key = "886886";
while(i-- != 0)
{
string s = Console.ReadLine();
if (s == key)
{
Console.WriteLine(you ate welcome);
return;
}
else
{
Console.WriteLine("wrongpassowrd\nEnter again :" + i);
}
}
Console.WriteLine("youhaveenterendthreetimes.");