Greatest common divisor: Difference between revisions

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