string username = Console.ReadLine();
Console.WriteLine("请输入密码");
string mima = Console.ReadLine();
if (username == "admin" && mima == "88888")
{
Console.WriteLine("正确");
}
else if (username != "admin")
{
Console.WriteLine("该用户名不存在");
}
else
{
Console.WriteLine("密码错误");
}
Console.ReadKey();
网友评论