Write a Python Program to print all the Divisors of an Integer


Topic: Write a Python Program to print all the Divisors of an Integer

Solution

n=60
print("The divisors of the number are:")
for i in range(1,n+1):
    if(n%i==0):
        print(i)



List all Python Programs