2018-11-01作业
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入用户名");
string name = Console.ReadLine();
Console.WriteLine("请输入你的密码");
string mima = Console.ReadLine();
{
if (name == "admin" && mima == "888888")
{
Console.WriteLine("登录成功");
}
else if (name != "admin" && mima == "888888")
{
Console.WriteLine("用户名不存在");
}
else if (name == "admin" && mima != "888888")
{
Console.WriteLine("密码错误");
}
Console.ReadKey();
}
}
}
}