Program to find factors of a number python

Table of Contents

Program to Find the Factor of Number.

Example: Program to Find the Factor of Number.
x=int(input("Enter No. :"))
for i in range(1,x+1):
 if(x%i==0):
  print(i)

Leave a Comment