using System;
using System.Linq;
public class Program
{
public static void Main()
float[] ages = {37, 15, 14, 15, 17, 16, 15, 14, 15, 15, 14, 15, 14, 14, 14, 16, 14, 16, 14, 15};
Console.WriteLine("The ages of people in Ms.Durning's 8th period class are: ");
//outputs elements of the array ages.
for (int i = 0; i < ages.Length; i++)
Console.Write(ages[i] + " ");
}
Console.WriteLine();
Console.WriteLine("The average of the ages in the class is " + ages.Average());