Console.WriteLine("请输入密码");
int key = Convert.ToInt32(Console.ReadLine());
if (key == 88888)
{ Console.WriteLine("正确"); }
else
{ Console.WriteLine("错误,程序结束"); }
Console.ReadKey();
Console.WriteLine("请输入密码");
int key = Convert.ToInt32(Console.ReadLine());
if (key == 88888)
{ Console.WriteLine("正确"); }
else
{ Console.WriteLine("错误,程序结束"); }
Console.ReadKey();