Console.WriteLine("Podaj rozmiar tablicy: ");
int n = int.Parse(Console.ReadLine());
int[] t1 = new int[n];
for (int i = 0; i < n; i++)
{
Console.WriteLine("Podaj liczbę : {0}", i );
t1[i] = int.Parse(System.Console.ReadLine());
}
Console.WriteLine("W tablicy sa: ");
for (int i = 0; i < n; i++)
{
Console.Write(t1[i] + " ");
}
Console.ReadKey();
Brak komentarzy:
Prześlij komentarz