Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = int(input())
- r = int(input())
- count = 0
- for x in range(l,r+1):
- for y in range(l, r + 1):
- for z in range(l, r + 1):
- if x**2 + y ** 2 == z ** 2:
- count += 1
- print(x,y,z)
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement