Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 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.  
  14. string próbálkozás;
  15. próbálkozás = "ezaz";
  16.  
  17. for(int i=0; i<3; i++)
  18.  
  19. {
  20. Console.WriteLine(" Add meg a jelszót," +(i+1)+"próbálkozás:" );
  21. asd[i]= Convert.ToString(Console.ReadLine());
  22.  
  23.  
  24.  
  25. if(próbálkozás != asd[i])
  26. {
  27. Console.WriteLine("Barom");
  28. }
  29. else
  30. {
  31. Console.WriteLine("Accepted");
  32. }
  33.  
  34. }
  35.  
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement