SHARE
TWEET

Untitled

a guest Apr 26th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.             int[] pontszamok = new int[20];
  3.             Random vsz = new Random();
  4.             int i = 0;
  5.             int hanyadik = 0;
  6.             for (i = 0; i < pontszamok.Length; i++)
  7.             {
  8.                 pontszamok[i] = vsz.Next(10,21);
  9.                 Console.WriteLine("{0} pontszama van",pontszamok[i]);
  10.             }
  11.             for (i = 0; i < 19; i++)
  12.             {
  13.                 if (pontszamok[i]==pontszamok[i+1])
  14.                 {
  15.                     hanyadik = i + 1;
  16.                     Console.WriteLine(" {0} szám egyezik a masik fossal {1} ",i+1,hanyadik+1);
  17.                 }
  18.             }
  19.             Console.ReadKey();
  20.         }
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top