Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(100, 1000):
- istr = str(i)
- d1 = int(istr[0] + istr[1])
- d2 = int(istr[1] + istr[0])
- m = int(istr[0]) * int(istr[1]) * int(istr[2])
- if m**2 == d1 or m**2 == d2:
- print(istr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement