public static void Main()
int[] thisArray = {10, 99, 55, 33, 22, 16, 18};
foreach (int element in thisArray)
double average = sum *1.0 / thisArray.Length;
Console.WriteLine("The sum of thisArray is {0}.", sum);
Console.WriteLine("The average of thisArray is {0}.\n", average);
int index = 0, Min = thisArray[index];
for (index = 1; index < thisArray.Length; index++)
if (thisArray[index] < Min)
Console.WriteLine("The minimum of thisArray is {0}.\n", Min);
for (int w = 1; w <= 3*10; w++)
if ((w % 3) == 0) Console.WriteLine(w);