Lösung: PIN in Blocked List
Completion requirements
- string[] blockedListPIN = new string[] { "0000", "1234", "9999" };
- string pin;
- Console.WriteLine("PIN eingeben: ");
- pin = Console.ReadLine();
- foreach (string p in blockedListPIN)
- {
- if (pin == p)
- {
- Console.WriteLine("pin not allowed");
- break; // Schleifenabbruch
- }
- }
Last modified: Friday, 25 September 2020, 10:00 AM