Write a recursive function that computes the greatest common divisor of two natural numbers and using the fast version of the Euclidean algorithm.
| C++ | |
| C | |
| Java | |
| Python | |
|
Neither nor 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-09-01T07:40:48.181Z
© Jutge.org, 2006–2026.
https://jutge.org