Q:

Calculate and print the divisors of an integer n using python programming

0

Calculate and print the divisors of an integer n using python programming

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

n = int(input("Enter an integer: "))
for i in range(1,n+1):
    if n % i == 0:
        print(i)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now