Computer Science, asked by sajeevshowkath, 8 months ago

write a program to input a number and print it's factors in Python
wrute a program to input a number and print its factors​

Answers

Answered by imtiyazallam
1

Answer:

def find_factors(x):

  print("The factors of",x,"are:")

  for i in range(1, x + 1):

      if x % i == 0:

          print(i)

num = int(input("Enter a number:"))

find_factors(num)

Attachments:
Similar questions