Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for a in range(1,333):
- for b in range(a+1,1000):
- c = 1000 - (a+b)
- if(c<=b):
- break;
- if(((a**2) + (b**2)) == (c**2)):
- print( "a =", a ,", b =", b ,", c =", c )
- print("a * b * c = ",a*b*c)
- # OUTPUT:
- # a = 200 , b = 375 , c = 425
- # a * b * c = 31875000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement