using System;
public class Program
{
public static void Main()
int[] a = {4,5,6,7,8};
for (int i = 4; i>0; i--)
for (int j=0; j<i; j++)
if (a[i] < a[j])
int temp = a[i];
a[i] = a[j];
a[j] = temp;
}
Console.WriteLine("{0}", a[3]);