Showing posts with label Positive divisors of a number. Show all posts
Showing posts with label Positive divisors of a number. Show all posts

Positive divisors of a number

# Positive divisors of a number

Num = int(input("Enter number:"))

print("Positive divisors of", Num, "are:")
for idx in range(1,Num+1, 1):
if(Num%idx==0):
print(idx)