Guest User

Untitled

a guest
Oct 5th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. class Program
  2. {
  3. static void Main(string[] args)
  4. {
  5. Console.WriteLine("Username:");
  6. String user = Console.ReadLine();
  7. Console.WriteLine("Password:");
  8. String Pass = Console.ReadLine();
  9.  
  10. Console.WriteLine("Are You Sure Your User: " + user + " And Pass: " + Pass + " is correct? Yes/No");
  11. Console.ReadLine();
  12. if (Console.ReadLine() == "Yes" || Console.ReadLine() == "yes")
  13. {
  14. Console.WriteLine("You May now close this");
  15. }
  16. else if(Console.ReadLine() == "No" || Console.ReadLine() == "no")
  17. {
  18. Console.WriteLine("Pleas Press enter");
  19. System.Diagnostics.Process.Start(Environment.GetCommandLineArgs()[0], Environment.GetCommandLineArgs().Length > 1 ? string.Join(" ", Environment.GetCommandLineArgs().Skip(1)) : null);
  20. }
  21. }
  22. }
Add Comment
Please, Sign In to add comment