{static private int Median(int[]array)
int count = tempArray.Length;
int middleElement1= tempArray[(count/ 2)-1];
int middleElement2=tempArray[(count / 2)];
medianValue = (middleElement1 + middleElement2) / 2;
medianValue = tempArray[(count / 2)];
public static void Main()
Console.WriteLine("I will chose 10 random numbers between 1 and 100");
Console.Write(a[i] + " ");
int[] other= new int[a.Length];
Array.Copy(a, other, a.Length);
Console.WriteLine("Your numbers in order are: ");
{Console.Write(number + " ");}
Console.WriteLine("The median is"+ Median(a));
Console.WriteLine("The average of the numbers is" + a.Average());
Console.WriteLine("Do you want to restart? y or n");
string ans = Console.ReadLine();