Hi there when I type yes or no/No it doesnt do what Its supposed to do what am I doing wrong?
class Program { static void Main(string[] args) { Console.WriteLine("Username:"); String user = Console.ReadLine(); Console.WriteLine("Password:"); String Pass = Console.ReadLine(); Console.WriteLine("Are You Sure Your User: " + user + " And Pass: " + Pass + " is correct? Yes/No"); Console.ReadLine(); if (Console.ReadLine() == "Yes" || Console.ReadLine() == "yes") { Console.WriteLine("You May now close this"); } else if(Console.ReadLine() == "No" || Console.ReadLine() == "no") { Console.WriteLine("Pleas Press enter"); System.Diagnostics.Process.Start(Environment.GetCommandLineArgs()[0], Environment.GetCommandLineArgs().Length > 1 ? string.Join(" ", Environment.GetCommandLineArgs().Skip(1)) : null); } } } 
ReadLinetwice in eachifstatement. Call it once, assign the results to a string, then test that string.if(Console.ReadLine().ToLower() == "yes")