Skip to content

Instantly share code, notes, and snippets.

@Shtihl
Created August 12, 2019 21:26
Show Gist options
  • Save Shtihl/a4fa48cb6d5accd36367cb74fa419335 to your computer and use it in GitHub Desktop.
Save Shtihl/a4fa48cb6d5accd36367cb74fa419335 to your computer and use it in GitHub Desktop.
minmaxleft
a = int(input())
b = int(input())
c = int(input())
if a >= b:
if a >= c:
if b >= c:
print(a)
print(c)
print(b)
else:
print(a)
print(b)
print(c)
else:
print(c)
print(b)
print(a)
else:
if a >= c:
print(b)
print(c)
print(a)
else:
if b >= c:
print(b)
print(a)
print(c)
else:
print(c)
print(a)
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment