#编码
Console.WriteLine("输入用户名");
string name = Console.ReadLine(); //输入
Console.WriteLine("输入密码");
string mima = Console.ReadLine();
int mi = Convert.ToInt32(mima); //类型转换
if (name == "admin" && mi == 88888)
{
Console.WriteLine("输入正确");
}
else if (name != "admin")
{
Console.WriteLine("检查用户名是否存在");
}
else
{
Console.WriteLine("密码错误"); //if else 判断
}
Console.ReadKey();