i have the following code
how can i get the second user to login successfully
- public static void Main(string[] args)
- {
- string username = "alex";
- string password = "sunshine";
- string username2 = "emma";
- string password2= "haskell";
- Console.WriteLine("Enter username:");
- string input = Console.ReadLine();
- Console.WriteLine("Enter password:");
- string input2 = Console.ReadLine();
- if (username == input)
- {
- if (password == input2)
- {
- if (username2==input)
- {
- if (password2==input2)
- {
- Console.Write("You have successfully logged in!");
- }
- }
- }
- }
- else
- {
- Console.Write("Incorrect username or password!");
- }