def get_gcd(num1, num2):
    """
    Gets the greatest common divisor of two numbers.

    :param num1: The first number.
    :param num2: The second number.
    :return: The GCD.
    """
    if (num2 == 0):
        return num1
    return get_gcd(num2, num1 % num2)