algorithm to find factor of given number
Answers
Answered by
1
n=int(input("enter the number"))
l=[1]
for i in range(2,n+1):
if n%i==0:
l.append(i)
print("factors of n :",end=" ")
for j in l:
print(i,",",end=" ")
Similar questions