using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { Console.WriteLine("请输入密码"); string s1=Console.ReadLine(); int s2 = Convert.ToInt32(s1); if (s2==888888) { Console.WriteLine("输入正确,欢迎!"); } else { Console.WriteLine("输入错误,对不起!"); } /* if (s2 >888888||s2<888888) { Console.WriteLine("输入错误,对不起!"); } else { Console.WriteLine("输入正确,欢迎!"); } */ Console.ReadKey(); } } }
PASS COME ON !