using System;
public class Program{public static void Main(){int[] array = {1, 2, 3, 4, 5, 6};int[] productArray = new int[array.Length / 2];
}
// Вывод:// 6// 20// 15
using System;
public class Program
for (int i = 0; i < array.Length / 2; i++){
public static void Main()
{
int[] array = {1, 2, 3, 4, 5, 6};
int[] productArray = new int[array.Length / 2];
{
productArray[i] = array[i] * array[array.Length - i - 1];
}
foreach (var product in productArray)
{
Console.WriteLine(product);
}
}
}
// Вывод:
// 6
// 20
// 15