Console.WriteLine("请输入密码");
string mima = Console.ReadLine();
int usermima = Convert.ToInt32(mima);
bool b =(usermima==88888);
if (b)
{
Console.WriteLine("密码正确");
}
else
{
Console.WriteLine("密码错误");
}
Console.ReadKey();
Console.WriteLine("请输入密码");
string mima = Console.ReadLine();
int usermima = Convert.ToInt32(mima);
bool b =(usermima==88888);
if (b)
{
Console.WriteLine("密码正确");
}
else
{
Console.WriteLine("密码错误");
}
Console.ReadKey();