Computer Science, asked by chaudharydibya2003, 8 months ago

algorithm to find factor of given number​

Answers

Answered by mohitx618
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