Greatest common divisor: Difference between revisions
Content deleted Content added
Line 291:
)
</pre>
=={{header|Nial}}==
Nial provides gcd in the standard lib.
|loaddefs 'niallib/gcd.ndf'
|gcd 6 4
=2
defining it separately
gcd is operation m n { while m ~= 0 do g := m ; m := n mod m ; n := g ; endwhile ; g }
|gcd 6 4
=2
=={{header|OCaml}}==
|