Create a Python script which will accept a positive integer and will display the DIVISORS of the input number.
Sample Output:
Input a Positive Integer: 20
The DIVISORS of 20 are...
1 2 4 5 10 20
n = 20
for i in range(1, n+1):
if n % i == 0:
print(i, end=" ")
Comments
Leave a comment