MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / lcm

Function lcm

math/least_common_multiple.cpp:43–45  ·  view source on GitHub ↗

* Function for finding the least common multiple of two numbers. * @params integer x and y whose lcm we want to find. * @return lcm of x and y using the relation x * y = gcd(x, y) * lcm(x, y) */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testsFunction · 0.85

Calls 1

gcdFunction · 0.70

Tested by

no test coverage detected