LCM Of Two Numbers

    0

    0

    CrypticSai-08

    num1 = 12
    num2 = 14
    for i in range(max(num1, num2), 1 + (num1 * num2)):
        if i % num1 == i % num2 == 0:
            lcm = i
            break
    print("LCM of", num1, "and", num2, "is", lcm)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.