Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def d(a):
- res = 2
- for i in range(2,a // 2 + 1):
- if a % i == 0:
- res += 1
- return res
- n = int(input())
- for x in range(1,n):
- print(x,'+'*d(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement