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)

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu