Commit bdf52507 by BellCodeEditor

save project

parent 9aaa4fd8
Showing with 14 additions and 0 deletions
n=int(input())
list1=[]
p=0
k=0
for i in range(n):
list1.append(int(input()))
for i in range(n-1):
for j in range(n-1):
if list1[j]<list1[j+1]:
p=list1[j]
list1[j]=list1[j+1]
list1[j+1]=p
print(list1)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment