[]
Method that calculates the Least Common Multiple (LCM) of two strictly positive integer numbers.
public static int lcm(int x1, int x2)
Type | Name | Description |
---|---|---|
int | x1 | First number |
int | x2 | Second number |
Type | Description |
---|---|
int |
Method that calculates the Least Common Multiple (LCM) of several positive integer numbers.
public static int lcm(int[] x)
Type | Name | Description |
---|---|---|
int[] | x | Array containing the numbers. |
Type | Description |
---|---|
int |