Program to sort an array in descending order using bubble sort.

 

Sample Input
Enter number of elements
5
Enter 5 integers
2 3 1 6 4
Sample Output
Sorted list in ascending order:
6
4
3
2
1

 

You may also like...