Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- static void Main(string[] args)
- {
- int Min = 0;
- int Max = 0;
- int rozmiar = int.Parse(Console.ReadLine());
- int[] tablica = new int[rozmiar];
- Random rand = new Random();
- for (int i = 0; i < tablica.Length; i++)
- {
- tablica[i] = rand.Next(0, 20);
- Console.WriteLine(tablica[i]);
- }
- Console.WriteLine("MAX:" + tablica.Max());
- Console.WriteLine("MIN:" + tablica.Min());
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement