Console.WriteLine("请输入用户名");
string name = Console.ReadLine();
Console.WriteLine("请输入密码");
int key = Convert.ToInt32(Console.ReadLine());
string a="admin";
if (name == a)
{ Console.WriteLine(""); }
else
{ Console.WriteLine("用户名不存在"); }
if (key == 88888)
{ Console.WriteLine("正确"); }
else
{ Console.WriteLine("密码错误"); }
Console.ReadKey();