Console.WriteLine("请输入帐号");
string userName = Console.ReadLine();
Console.WriteLine("请输入密码");
string key=Console.ReadLine();
bool b = userName == "admin" && key == "mypass" ;
if (b)
{ Console.WriteLine("登陆成功");}
Console.ReadKey();
2018-10-31作业四
网友评论