function
lcm
lcm(a: Int, b: Int) -> Int
Computes the least common multiple of two integers.
Args:
- a (
Int
): The first input argument. Must be non-negative. - b (
Int
): The second input argument. Must be non-negative.
Returns:
The least common multiple of the inputs. Results are undefined if either input is negative.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?