Algorithms
Algorithms copied to clipboard
Create gcd.cpp
The algorithm cannot recuse indefinitely, since the second argument strictly decreases in each recursive call and is always nonnegative.