输入88888
Console .WriteLine ("请输入您的密码:");
string pw = Console.ReadLine();
bool a = (pw =="88888");
if (a)
{
Console.WriteLine("密码正确");
Console.ReadKey();
}
else
Console.WriteLine("密码错误,程序自动退出");
输入88888
Console .WriteLine ("请输入您的密码:");
string pw = Console.ReadLine();
bool a = (pw =="88888");
if (a)
{
Console.WriteLine("密码正确");
Console.ReadKey();
}
else
Console.WriteLine("密码错误,程序自动退出");