using System;
public class Program
{
public static void Main()
int[] t = new int[1000];
int i,n, min = 0, max = 0;
Console.WriteLine("Podaj n:");
n = Convert.ToInt32(Console.ReadLine());
for (i = 0; i < n; i++)
Console.WriteLine("Podaj liczbę do tablicy: ");
t[i] = Convert.ToInt32(Console.ReadLine());
if (t[i] >= max)
max = t[i];
else if (t[i] < min)
min = t[i];
}
}}