/*1. 要求用户输入用户名和密码,只要不是admin、888888就一直提示用户名或密码错误,请重新输入
*
*
*
* */
string user = "";
string key = "";
do{
Console .WriteLine ("请输入用户名");
user =Console .ReadLine ();
Console .WriteLine ("请输入密码");
key=Console .ReadLine ();
if(user !="admin" || key !="888888")
{
Console.WriteLine("您输入的用户名或密码错误请重新输入");
}
}while (user !="admin" || key !="888888");
Console.ReadKey();