Factors of a number

    0

    0

    CrypticSai-08

    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)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.