完成以下要求:
string name = ""; string mima = ""; do { Console.WriteLine("请输入用户名"); name = Console.ReadLine(); Console.WriteLine("请输入密码"); mima = Console.ReadLine(); if (name != "admin" || mima != "888888") { Console.WriteLine("请输入正确的帐号密码"); } else { Console.WriteLine("登录成功"); } } while (name != "admin" || mima != "888888"); Console.ReadKey();
网友评论