Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. String realpassword, userpassword;
  13. realpassword = "******";
  14. while (true)
  15. {
  16. Console.WriteLine("Enter the password");
  17. userpassword = Console.ReadLine();
  18. if (userpassword == realpassword) break;
  19. Console.WriteLine("Wr0ng P4Ssw0rd !");
  20. }
  21. Console.WriteLine("Access is permitted");
  22. Console.WriteLine("Push any button to destroy America");
  23. Console.ReadLine();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement