Advertisement
Guest User

Untitled

a guest
Apr 5th, 2017
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1.  
  2. namespace ConsoleApplication3
  3. {
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. int number = 10;
  9. string username = "bit1@abv.bg";
  10. string password = "secret";
  11. string newUsername = "bit2@abv.bg";
  12. string newPassword = "secret1";
  13.  
  14.  
  15. // cin
  16. Console.WriteLine("Ënter username: ");
  17. username = Console.ReadLine();
  18. Console.WriteLine("Ënter password: ");
  19. password = Console.ReadLine();
  20.  
  21. if(username==newUsername && password==newPassword)
  22. {
  23. Console.WriteLine("Welcome!");
  24. }
  25. else
  26. {
  27. Console.WriteLine("Error");
  28. }
  29.  
  30.  
  31.  
  32. //system.pause()
  33. Console.ReadKey();
  34.  
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement