Since lines 29 and 30 already calculate the absolute values, I assume that any additional calls to abs later on should not change the values. gcdRecursive should not return a negative value because both inputs to the modulo operation are already positive.
Since lines
29
and30
already calculate the absolute values, I assume that any additional calls toabs
later on should not change the values.gcdRecursive
should not return a negative value because both inputs to the modulo operation are already positive.Something to read about
%
: https://www.php.net/manual/en/language.operators.arithmetic.php