BubbleSort: Bubble Sort // Advanced

 
Sort the numbers from greatest to least

Input Format

First line is n, the amount of integers that will follow
Lines 2 to n+1 will each contain an integer

Sample Input

4
1
10
2
7

Output Format

Integers sorted from greatest to least, one number per line

Sample Output

10
7
2
1




You must be logged in to submit a solution.