Java gcd gcd(int largerNumber, int smallerNumber)

Here you can find the source of gcd(int largerNumber, int smallerNumber)

Description

gcd

License

Open Source License

Declaration

public static int gcd(int largerNumber, int smallerNumber) 

Method Source Code

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

public class Main {
    public static int gcd(int largerNumber, int smallerNumber) {
        return (smallerNumber == 0) ? largerNumber : gcd(smallerNumber,
                largerNumber % smallerNumber);
    }//from   w ww .  ja  v a  2s  .c o m
}

Related

  1. gcd(int a, int b)
  2. gcd(int a, int b)
  3. gcd(int a, int b, int... rest)
  4. gcd(int firstNumber, int secondNumber)
  5. gcd(int k, int m)
  6. gcd(int m, int n)
  7. GCD(int m, int n)
  8. gcd(int m, int n)
  9. gcd(int n, int m)