Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- String realpassword, userpassword;
- realpassword = "******";
- while (true)
- {
- Console.WriteLine("Enter the password");
- userpassword = Console.ReadLine();
- if (userpassword == realpassword) break;
- Console.WriteLine("Wr0ng P4Ssw0rd !");
- }
- Console.WriteLine("Access is permitted");
- Console.WriteLine("Push any button to destroy America");
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement