Write a program to input any number and to print all the factors of that number.
Write a program to input any number and to print all the factors of that number.
4 views
1 Answers
n = inputfEnter the number")
for i in range(2,n):
if n%i == 0:
print i,“is a factor of’.n
4 views
Answered