Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Latest commit

 

History

History

bubble_sort_descending

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Bubble Sort Descending Order

This is a program that prints the elements of an array in descending order using bubble sort algorithm.

Input Format

First line contains the number of elements in the array. From second line user needs to enter the elements of the array.

Output Format

Output of one line containing sorted array in descending order.

Sample Input

Enter for no of elements: 5
Enter value: 45
Enter value: 23
Enter value: 78
Enter value: 89
Enter value: 12

Sample Output

The values in descending order is: 
89 78 45 23 12 

Implemented in: