Jump to content

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.