public static void Main()
int[] thisArray = { 10, 99, 55, 33, 22, 16, 18};
foreach (int element in thisArray)
double dAvg = sum/thisArray.Length;
Console.WriteLine("The average is " + dAvg);
int iMinimum = thisArray[0];
for (int i = 1; i < thisArray.Length; i++)
if (thisArray[i] < iMinimum)
Console.WriteLine("The minimum is " + iMinimum);
for(int x = 1; x <= 10; x++)