[]
Method that calculates the Least Common Multiple (LCM) of two strictly positive integer numbers.
public static int lcm(int x1, int x2)
Public Shared Function lcm(x1 As Integer, x2 As Integer) As Integer
| 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)
Public Shared Function lcm(x As Integer()) As Integer
| Type | Name | Description |
|---|---|---|
| int[] | x | Array containing the numbers. |
| Type | Description |
|---|---|
| int |