Program to find factors of a number a=input("Enter the number : ")print"The factors are : "for i in range(1, a + 1): if a % i == 0: print(i) OUTPUT : Enter the number : 60The factors are : 123456101215203060
No comments