Write a recursive function that computes the greatest common divisor of two natural numbers @a@ and @b@ using the fast version of the Euclidean algorithm.
| C++ | |
| C | |
| Java | |
| Python | |
|
Neither @a@ nor @b@ are negative, and at least one of them is strictly greater than zero.
You only need to submit the required procedure; your main program will be ignored.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:09:02.971Z
© Jutge.org, 2006–2026.
https://jutge.org