Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace pw
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. string [] asd= new string [3] ;
  13. Console.WriteLine("Írd be a jelszót");
  14. string próbálkozás;
  15.  
  16. for(int i=0; i<3; i++)
  17. {
  18. Console.WriteLine("Nem megfelelő jelszó," +(i+1)+"próbálkozás:" );
  19. asd[i]= Console.ReadLine();
  20.  
  21. próbálkozás = "ezaz";
  22.  
  23. if(próbálkozás != asd)
  24. {
  25. Console.WriteLine("Barom");
  26. }
  27. else
  28. {
  29. Console.WriteLine("Accepted");
  30. }
  31. break;
  32. }
  33.  
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement