LeastCommonMultiple.java
/**
     * The findLeastCommonMultiple method calculates the Least Common Multiple value depending on
     * the 2 values that are input by users.
     *
     * @param userInput1 the first user input positive value
     * @param userInput2 the second user input positive value
     * @return the calculated least common multiple value
     */
The findLeastCommonMultiple method calculates the Least Common Multiple value depending on
the 2 values that are input by users.

@param userInput1 the first user input positive value
@param userInput2 the second user input positive value
@return the calculated least common multiple value
The findLeastCommonMultiple method calculates the Least Common Multiple value depending on the 2 values that are input by users . @param userInput1 the first user input positive value @param userInput2 the second user input positive value @return the calculated least common multiple value
public static int findLeastCommonMultiple(int userInput1, int userInput2) {
        int value1 = userInput1;
        int value2 = userInput2;
        while (value1 != value2) {
            if (value2 > value1)
                value2 = value2 - value1;
            else
                value1 = value1 - value2;
        }
        return Math.abs(userInput1 * userInput2) / value1;
    }
public static int findLeastCommonMultiple ( int userInput1 , int userInput2 ) { int value1 = userInput1 ; int value2 = userInput2 ; while ( value1 != value2 ) { if ( value2 > value1 ) value2 = value2 - value1 ; else value1 = value1 - value2 ; } return Math . abs ( userInput1 * userInput2 ) / value1 ; }
The findLeastCommonMultiple method calculates the Least Common Multiple value depending on
 the 2 values that are input by users.
The findLeastCommonMultiple method calculates the Least Common Multiple value depending on the 2 values that are input by users .