Java Divisor maxCommonDivisorCore(int num1, int num2)

Here you can find the source of maxCommonDivisorCore(int num1, int num2)

Description

max Common Divisor Core

License

Open Source License

Declaration

private static int maxCommonDivisorCore(int num1, int num2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static int maxCommonDivisorCore(int num1, int num2) {
        if (num1 % num2 == 0) {
            return num2;
        }//from   w ww  . ja v  a  2s.co  m

        return maxCommonDivisorCore(num2, num1 % num2);
    }
}

Related

  1. maxCommonDivisor(int m, int n)
  2. maxCommonDivisor(int num1, int num2)
  3. maxDivisibleNumber(float yourDividend, float divisor)
  4. maxLiteralLengthDivision(int n)