Skip to content

Instantly share code, notes, and snippets.

@Bundi-py
Last active December 16, 2019 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bundi-py/404b0a872e46416ca9ca765916596162 to your computer and use it in GitHub Desktop.
Save Bundi-py/404b0a872e46416ca9ca765916596162 to your computer and use it in GitHub Desktop.
Korisnik prvo unese tri integera, a potom ih program ispiše sortirane po veličini.
a = int(input('Unesi prvi broj: '))
b = int(input('Unesi drugi broj: '))
c = int(input('Unesi treći broj: '))
mn = min(a, b, c)
mx = max(a, b, c)
sr = a + b + c - mn - mx
print()
print('Sortirani brojevi su:')
print('*** ', mn)
print('*** ', sr)
print('*** ', mx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment