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