Skip to content

Commit f15df8e

Browse files
committed
Commit
1 parent 985d146 commit f15df8e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Orderingintegersindescendingorder.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#Q. 89:
2+
3+
#Ordering integers in descending order(Searching and Sorting)
4+
5+
#Sort the given set of integers using bubble sort and print from largest to smallest integer
6+
7+
8+
s = int(input())
9+
L = []
10+
ans = []
11+
for i in range(s):
12+
L.append(int(input()))
13+
L.sort()
14+
s = s - 1
15+
while s >= 0:
16+
ans.append(L[s])
17+
s = s - 1
18+
print(ans)

0 commit comments

Comments
 (0)