public static void Main()
int[] thisArray = new int[]{10, 99, 55, 33, 22, 16, 18};
foreach (int i in thisArray)
average = sum * 1.0 / thisArray.Length;
Console.WriteLine("Average is {0}", average);
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 v=1; v <= 10; v++)
if ((v%3) == 0 ) continue;