Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def bigger_sum(a, b, c):
- if (a > b and a > c and b > c) :
- return a**2 + b**2
- elif (a > b and a > c and c > b):
- return a**2 + c**2
- elif (b > a and b > c and a > c):
- return b**2 + a**2
- elif (b > a and b > c and c > a):
- return b**2 + c**2
- elif (c > a and c > b and a > b):
- return c**2 + a**2
- elif (c > a and c > b and b > a):
- return c**2 + b**2
- elif (a == b and a > c):
- return a**2 + b**2
- elif (b == c and b > a):
- return b**2 + c**2
- elif (c == a and c > b):
- return c**2 + a**2
- elif (a > b and a > c and b == c):
- return a**2 + b**2
- elif (b > a and b > c and a == c):
- return b**2 + c**2
- elif (c > a and c > b and a == b):
- return c**2 + a**2
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement