Last active
December 16, 2019 10:27
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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