Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ find_lcm
Function
find_lcm
Maths/find_lcm.py:1–8 ·
view source on GitHub ↗
(num_1, num_2)
Source
from the content-addressed store, hash-verified
1
def
find_lcm(num_1, num_2):
2
max = num_1
if
num_1 > num_2
else
num_2
3
lcm = max
4
while
(True):
5
if
((lcm % num_1 == 0) and (lcm % num_2 == 0)):
6
break
7
lcm += max
8
return
lcm
9
10
11
def
main():
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected