public static void Main()
double [] ages ={ 16,15,15,14,15,14,17,15,16,16,15,14,14,17,14,16,14,19,14,52, 14};
float [] newages = new float[ages.Length];
Array.Copy(ages , newages, ages.Length);
Console.WriteLine("The average of the ages in the class is " + ages.Average());
Console.WriteLine("The people in the classroom are:");
for (int i = 0; i<ages.Length; i++)
{Console.WriteLine(ages[i] + ",");}
Console.WriteLine("The sorted ages are:");
for(int b = 0; b <21; b++)
Console.Write(ages[b] +" , ");
Console.WriteLine("The unsorted list is:");
for(int b = 0; b <21; b++)
Console.Write(newages[b] +" , ");