public static void Main()
int [] list = new int [10];
{list[i] = r.Next(1,101);
Console.WriteLine(list[i] + " ");}
Console.WriteLine("The average of the ages in the class is " + list.Average());
Console.WriteLine("List of numbers from least to greatest is:");
foreach (int person in list)
Console.WriteLine(person);