Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- count = 0
- while count <= 100:
- for a in range(1, 100):
- for b in range(1, 100):
- c = math.sqrt(a**2 + b**2)
- if c % 1 == 0:
- print(a, b, int(c))
- count += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement