using System;
public class Program
{
public static void Main()
int[] array = {8, 6, 5, 9, 3, 11, 12, 4};
int temp;
for (int i = 0; i < array.Length - 1; i++)
for (int j = i + 1; j < array.Length; j++)
if (array[i] < array[j])
temp = array[i];
array[i] = array[j];
array[j] = temp;
}
// print all element of array
foreach(int value in array)
Console.Write(value + " ");