def printDivisors(n) :
          i = 1
          while i <= n :
              if (n % i==0) :
                  print (i,end=" ")
              i = i + 1
      # Driver method
      print ("The divisors of 100 are: ")
      printDivisors(100)
      
      Python language logo

      Factors of a number

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.