Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. def bigger_sum(a, b, c):
  2. if (a > b and a > c and b > c) :
  3. return a**2 + b**2
  4. elif (a > b and a > c and c > b):
  5. return a**2 + c**2
  6. elif (b > a and b > c and a > c):
  7. return b**2 + a**2
  8. elif (b > a and b > c and c > a):
  9. return b**2 + c**2
  10. elif (c > a and c > b and a > b):
  11. return c**2 + a**2
  12. elif (c > a and c > b and b > a):
  13. return c**2 + b**2
  14. elif (a == b and a > c):
  15. return a**2 + b**2
  16. elif (b == c and b > a):
  17. return b**2 + c**2
  18. elif (c == a and c > b):
  19. return c**2 + a**2
  20. elif (a > b and a > c and b == c):
  21. return a**2 + b**2
  22. elif (b > a and b > c and a == c):
  23. return b**2 + c**2
  24. elif (c > a and c > b and a == b):
  25. return c**2 + a**2
  26. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement