using System;
public class Program
{
public static void Main()
double[] a = new double[8] { -4, -4, 1000, 1, 23, 1000, 1000, 467};
double[] b = new double[8];
double max = a[0];
int count = 0;
for (int i = 0; i < 8; i++)
if (a[i] > max)
max = a[i];
b[count] = i;
}
else if (a[i] == max)
b[count + 1] = i;
count++;
Console.WriteLine("Новый массив:");
for (int i = 1; i < count + 1; i++)
Console.Write(b[i]);
Console.Write(" ");