Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- decimal trainticket;
- string[] username = { "x", "y", "z", };
- string[] password = { "x", "y", "z", };
- while (HERE is WHAT i NEED TO MAKE THE USER AND PASS WORK)
- {
- Console.SetWindowSize(50, 28);
- Console.BackgroundColor = ConsoleColor.Gray;
- Console.Clear();
- Console.ForegroundColor = ConsoleColor.Red;
- Console.SetCursorPosition(13, 1);
- Console.WriteLine("Enter Your Login Details");
- Console.ForegroundColor = ConsoleColor.DarkGreen;
- Console.SetCursorPosition(15, 6);
- Console.Write("Username: ");
- Console.ForegroundColor = ConsoleColor.Black;
- Console.ReadLine();
- Console.ForegroundColor = ConsoleColor.DarkGreen;
- Console.SetCursorPosition(15, 9);
- Console.Write("Password: ");
- Console.ForegroundColor = ConsoleColor.Black;
- Console.ReadLine();
- Console.WriteLine();
- attempts = attempts + 1;
- if (attempts == 3)
- {
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement