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