string name = "";
string mima = "";
do
{
Console.WriteLine("请输入用户名");
name = Console.ReadLine();
Console.WriteLine("请输入密码");
mima = Console.ReadLine();
if ("admin" != name & "88888" != mima)
{
Console.WriteLine("用户名或密码错误,请重新输入");
}
} while ("admin" != name & "88888" != mima);
Console.ReadKey();