public static void Main()
int [] ranNum = new int[13];
for (int i = 0; i < 13; i++)
Console.Write(ranNum[i] + "");
Console.WriteLine("\n Yours numbers from least to greatest are:");
foreach(int number in ranNum)
Console.WriteLine(number + "");
Console.WriteLine("/n the average of the ages in the class is" + ranNum.Average());
int[] tempArray = ranNum;
int count = tempArray.Length;
float middleElement1 = tempArray[(count / 2) - 1];
float middleElement2 = tempArray[(count / 2)];
medianValue = (middleElement1 + middleElement2) / 2;
medianValue = tempArray[(count / 2)];