Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- highP = 0
- for i in range (999, 0, -1):
- for j in range (999,0, -1):
- possP = str(i*j)
- revP = (''.join(reversed(str(possP))))
- if revP == possP and int(revP) > int(highP):
- highP = revP
- print (highP)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement