public static void Main()
int[] thisArray = new int[] {10, 99, 55, 33, 22, 16, 18};
foreach (int element in thisArray)
iAverage = iSum / thisArray.Length;
Console.WriteLine("The average is {0}. ",iAverage);
if (thisArray.Length == 0)
Console.Write("Array is empty!");
int index = 0, iMin = thisArray[index];
for (index = 1; index < thisArray.Length; index++)
if (thisArray[index] < iMin) iMin = thisArray[index];
Console.WriteLine("The minimum is {0}.", iMin);
for (int n = 1; n <= 10; n++)
if ((n % 3) == 0) continue;