Greatest common divisor: Difference between revisions

Content added Content deleted
m (→‎Built-in: Illustrated usage with an array)
(Limbo version.)
Line 1,332: Line 1,332:
end function
end function
</lang>
</lang>

=={{header|Limbo}}==

<lang Limbo>gcd(x: int, y: int): int
{
if(y == 0)
return x;
return(y, x % y);
}
</lang>


=={{header|LiveCode}}==
=={{header|LiveCode}}==