DEV Community

Sajin Joe J
Sajin Joe J

Posted on

What is the smallest 5 digit number that is exactly divisible by 72 and 108?

no = 10000
while no <= 99999:
    if no%72==0 and no%108==0:
        print(no)
        break
    no+=1
Enter fullscreen mode Exit fullscreen mode

Top comments (0)