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 |
<syntaxhighlight> |
||
func gcd a b . |
func gcd a b . |
||
while b <> 0 |
while b <> 0 |
||
swap a b |
|||
b = |
b = b mod a |
||
a = h |
|||
. |
. |
||
return a |
return a |