public static void Main()
Console.WriteLine("Въведете големината на масива");
int lnght = int.Parse(Console.ReadLine());
int[] arr = new int[lnght];
Console.WriteLine("Въведете всяко число от масива на отделен ред");
for(int i = 0; i < arr.Length; i++){
int newElement = int.Parse(Console.ReadLine());
Console.WriteLine("-------------------------------");
Console.WriteLine("Напишете 0 ако искате да затворите програмата");
string command = Console.ReadLine();
Console.WriteLine("Индекс на първо число");
int index1 = int.Parse(Console.ReadLine());