Advertisement
Guest User

Untitled

a guest
Jun 12th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication11
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. {
  15. string username, password;
  16.  
  17. Console.Write("Enter user name:\t");
  18. username=Console.ReadLine();
  19. Console.Write("Enter password:\t");
  20. password = Console.ReadLine();
  21. if((username=="Steven" && password=="helal"))
  22. {
  23. Console.WriteLine("\nLogin Successful");
  24. }
  25. else
  26. {
  27. Console.WriteLine("\nUnauthorised Access.aboriting..");
  28. Console.ReadLine();
  29. }
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement