Return the greatest common divisor (GCD) of X and Y via
the Euclidean algorithm.

C# | Visual Basic | Visual C++ |
public static int EuclideanGCD( int X, int Y )
Public Shared Function EuclideanGCD ( _ X As Integer, _ Y As Integer _ ) As Integer
public: static int EuclideanGCD( int X, int Y )

- X (Int32)
- First number
- Y (Int32)
- Second number

The greatest common divisor of X and Y.