Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- limit = 15
- storage = []
- x = 1
- y = 1
- for x in range(limit + 1):
- for y in range(limit + 1):
- x += 1
- y += 1
- n = x*y/(x+y)
- condition = x*y%(x+y)
- if (condition == 0 and x<y and y<limit):
- count += 1
- storage.append(x)
- storage.append(y)
- storage.append(n)
- print (storage)
- print (count)
- count = 0
- limit = 15
- storage = []
- x = 1
- y = 1
- for x in range(1,limit + 1):
- for y in range(1,limit + 1):
- n = x*y/(x+y)
- condition = x*y%(x+y)
- if (condition == 0 and x<y and y<=limit):
- count += 1
- storage.append(x)
- storage.append(y)
- storage.append(n)
- print (storage)
- print (count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement