using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Username&&Password
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please Input Username and Password:");
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
while (true)
{
if(s1!="admin"||s2!="888888")
{
Console.WriteLine("Please Input Again:");
s1 = Console.ReadLine();
s2 = Console.ReadLine();
}
if (s1 == "admin" && s2 == "888888")
{
Console.Write("Correct!");
return;
}
Console.ReadKey();
}
}
}
}
[C#]用户名&&密码
最新推荐文章于 2024-05-29 19:54:41 发布