Advertisement
Ratnum

oef_wachtwoord

Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. string wachtwoord = "juist";
  2.             Console.WriteLine("geef uw wachtwoord aub");
  3.             double counter = 5;
  4.             string input = Console.ReadLine();
  5.             while (counter >= 2)
  6.             {
  7.                 if (input == wachtwoord)
  8.                 {
  9.                     counter = counter - 6;
  10.                     Console.WriteLine("nice");
  11.  
  12.                 }
  13.                 else
  14.                 {
  15.                     Console.WriteLine("dit is fout. Probeer opnieuw aub");
  16.                     counter = counter - 1;
  17.                     Console.WriteLine("geef het wachtwoord opnieuw");
  18.                     input = Console.ReadLine();
  19.                 }
  20.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement