This is a program that prints the elements of an array in descending order using bubble sort algorithm.
First line contains the number of elements in the array. From second line user needs to enter the elements of the array.
Output of one line containing sorted array in descending order.
Enter for no of elements: 5
Enter value: 45
Enter value: 23
Enter value: 78
Enter value: 89
Enter value: 12
The values in descending order is:
89 78 45 23 12