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.
Input/Output