Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = list(map(int, input().split(" ")))
- for i in range(len(l)):
- for a in range(len(l) - i - 1):
- if l[a] > l[a + 1]:
- l[a], l[a + 1] = l[a + 1], l[a]
- print(l)
- OR
- l = list(map(int,input().split()))
- a = 0
- for i in range(len(l)):
- for j in range(len(l)):
- if l[i] > l[j]:
- l[j],l[i] = l[i],l[j]
- print(l[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement