using System.Collections.Generic;
public static void Main()
int[] percentage = new int[] { 1, 2, 10, 4, 7, 11 };
for (int i = 0; i < percentage.Length - 1; i++)
if (percentage[i] < percentage[i + 1])
int temp = percentage[i];
percentage[i] = percentage[i + 1];
percentage[i + 1] = temp;
int[] sortedPercentage = new int[percentage.Length];
for (int i = 0, j = percentage.Length - 1; i < percentage.Length; i++, j--)
sortedPercentage[i] = percentage[j];
List<int> oldList = new List<int>() { 11, 20, 3, 4, 45, 4, 60 };
for (int i = 0; i < oldList.Count - 1; i++)
if (oldList[i] < oldList[i + 1])
oldList[i] = oldList[i + 1];
for(int i = 1; i< sortedPercentage.Length; i++){
Console.WriteLine(sortedPercentage[i]);