Advertisement
sigmachto

Untitled

Jul 4th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. l = int(input())
  2. r = int(input())
  3. count = 0
  4. for x in range(l,r+1):
  5.     for y in range(l, r + 1):
  6.         for z in range(l, r + 1):
  7.             if x**2 + y ** 2 == z ** 2:
  8.                 count += 1
  9.                 print(x,y,z)
  10. print(count)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement