using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int[] arr =new int[]{1,3,2,4,5,2,4,23,4,23,5,3,52,32}; int i, j, tmp; for (i = 0; i < arr.Length; i++) { for (j = 0; j < arr.Length - 1 - i; j++) { if (arr[j] < arr[j + 1]) { tmp = arr[j]; arr[j]=arr[j + 1]; arr[j + 1] = tmp; } } } for (i = 0; i < arr.Length; i++) { Console.Write(arr[i]); } Console.ReadLine(); } } } //csharp/4888