Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Concurrent;
  4.  
  5. public class Program
  6. {
  7. public static void Main()
  8. {
  9. bool login = false;
  10. while (login == false)
  11. {
  12. string todo = Console.ReadLine().ToLowerInvariant();
  13. if (todo.Equals("login"))
  14. {
  15.  
  16. }
  17. else if (todo.Equals("register"))
  18. {
  19.  
  20. }
  21. else
  22. {
  23. Console.WriteLine("Invalid command");
  24. }
  25. }
  26. }
  27. private static string getUsername()
  28. {
  29. Console.Write("Username: ");
  30. string inputUsername = Console.ReadLine();
  31. return inputUsername;
  32. }
  33. private static string getPassword()
  34. {
  35. Console.Write("Username: ");
  36. string inputPassword = Console.ReadLine();
  37. return inputPassword;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement