Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=int(input(""))
- result=[]
- for i in range(1, x+1):
- if x%i==0:
- result.append(i)
- if result==[]:
- print("ПРОСТОЕ")
- else:
- y=""
- for i in result:
- y+=(str(i)+" ")
- print(y)
- print("НЕТ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement