Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApplication4
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 0;
- alku:
- Console.WriteLine("Username:");
- Console.ReadLine();
- Console.WriteLine("Password:");
- string passu = Console.ReadLine();
- if (passu == "homo")
- Console.WriteLine("Acces granted");
- else
- {
- Console.WriteLine("Acces Denied");
- a = a + 1;
- if (a == 3)
- {
- Console.WriteLine("You have failed too many times, hard drive explodes in 5 seconds.");
- }
- else
- {
- goto alku;
- }
- }
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment