Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string wachtwoord = "juist";
- Console.WriteLine("geef uw wachtwoord aub");
- double counter = 5;
- string input = Console.ReadLine();
- while (counter >= 2)
- {
- if (input == wachtwoord)
- {
- counter = counter - 6;
- Console.WriteLine("nice");
- }
- else
- {
- Console.WriteLine("dit is fout. Probeer opnieuw aub");
- counter = counter - 1;
- Console.WriteLine("geef het wachtwoord opnieuw");
- input = Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement