Advertisement
STANAANDREY

ex7 lab1 LSD

Sep 30th, 2022
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. def sort(a, b, c):
  2.     maxi = max(a, b, c)
  3.     mini = min(a, b, c)
  4.     mid = a + b + c - mini - maxi
  5.  
  6.     return maxi, mid, mini
  7.  
  8.  
  9. if __name__ == "__main__":
  10.     a = int(input("a="))
  11.     b = int(input("b="))
  12.     c = int(input("c="))
  13.        
  14.     print(sort(a, b, c))
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement