public static void Main()
int[] myArray = new int[] { 1, 5, -10, -10, 2, -3 };
int endIndex = myArray.Length - 1;
if (Math.Abs(myArray[startIndex]) > Math.Abs(myArray[endIndex]))
a = myArray[startIndex++];
if (Math.Abs(myArray[startIndex]) > Math.Abs(myArray[endIndex]))
b = myArray[startIndex++];
if (Math.Abs(myArray[startIndex]) > Math.Abs(myArray[endIndex]))
c = myArray[startIndex++];
Console.WriteLine("The largest factor of 3 items on this array is: ");
Console.WriteLine(a + " x " + b + " x " + c + " = " + a * b * c);