Java Integer Divide divisor(int m, int n)

Here you can find the source of divisor(int m, int n)

Description

divisor

License

LGPL

Declaration

public static int divisor(int m, int n) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {

    public static int divisor(int m, int n) {
        if (m % n == 0) {
            return n;
        } else {/*from w  w w.j ava2 s. co  m*/
            return divisor(n, m % n);
        }
    }
}

Related

  1. divideUnsigned(int dividend, int divisor)
  2. divideWithCeilingRoundingMode(int p, int q)
  3. divideWithoutOverflow(int x, int y)
  4. division(int i_Divisor, int i_Dividend)
  5. divisor(int a, int b)
  6. divisorMod(int a, int n)
  7. divRoundUp(int a, int b)
  8. divUp(int dividend, int divisor)