Console .WriteLine ("用户名"); string yonghumoing=Console .ReadLine (); Console.WriteLine("密码"); string str_a=Console .ReadLine (); int a=Convert.ToInt32 (str_a); if (a==8888&&yonghumoing=="admin") { Console.WriteLine ("正确"); } if (yonghumoing != "admin") { Console.WriteLine("用户名不存在"); } else { Console.WriteLine("密码错误"); } Console .ReadKey();
#