Greatest common divisor: Difference between revisions

No edit summary
Line 455:
 
===Recursive===
<land d>long gcd(long x, long y) {
long gcd(long x, long y) {
if (y == 0)
return x;
return gcd(y, x%y);
}</lang>
}
</lang>
 
=={{header|Dc}}==
Anonymous user