public static void Main()
Console.Write("Въведи броя на елементите в масива: ");
int n = Convert.ToInt32(Console.ReadLine());
int[] array = new int[n];
Console.Write("Въведете 10 елемента за масива: ");
for (int i = 0; i < array.Length; i++)
Console.Write("елемент - {0} : ", i);
array[i] = Convert.ToInt32(Console.ReadLine());
Console.Write("\nEлементите на масива са: ");
for (int i = 0; i < array.Length; i++)
Console.Write("{0} ", array[i]);