public static void Main()
int[] arrays = new int [20];
for(int i = 0; i<20; ++i)
for(int i = 0; i<arrays.Length; ++i)
Console.WriteLine(i+" "+arrays[i]);
Random rando = new Random();
int numberOne = rando.Next(19);
int numberTwo = rando.Next(19);
int temp = arrays[numberOne];
arrays[numberOne] = arrays[numberTwo];
arrays[numberTwo] = temp;
for(int i = 0; i<arrays.Length; ++i)
numberOne = rando.Next(19);
numberTwo = rando.Next(19);
arrays[numberOne] = arrays[numberTwo];
arrays[numberTwo] = temp;
Console.WriteLine(i+" "+arrays[i]);
for(int i = 0; i<arrays.Length; ++i)
int smallest = arrays[i];
for(int j =i+1; j<arrays.Length; j++)
if(arrays[i] > arrays[j])
Console.WriteLine (i+" "+arrays[i]);
int search = Convert.ToInt32(Console.ReadLine());
for(int i = 0; i<arrays.Length; ++i)
Console.WriteLine("The element was found at {0}", temp);