2018-12-19
2018-12-20 本文已影响0人
29e0c7456d81
Console.WriteLine("请输入用户名");
string username = Console.ReadLine();
Console.WriteLine("请输入密码");
string password = Console.ReadLine();
if (username == "admin" && password == "88888")
{
Console.WriteLine("用户名和密码输入正确");
}
else if (username != "admin" && password == "88888")
{
Console.WriteLine("你输入的用户名不存在");
}
else if(username=="admin"&&password!="88888")
{
Console.WriteLine("你输入的密码错误");
}
Console.ReadKey();