Greatest common divisor: Difference between revisions

Content added Content deleted
imported>OneEyed
(Implementation of GCD in Uiua)
Line 2,637: Line 2,637:
=={{header|EasyLang}}==
=={{header|EasyLang}}==


<syntaxhighlight lang="text">
<syntaxhighlight>
func gcd a b .
func gcd a b .
while b <> 0
while b <> 0
h = b
swap a b
b = a mod b
b = b mod a
a = h
.
.
return a
return a