Greatest common divisor: Difference between revisions
Content added Content deleted
(→{{header|RPL}}: improved) |
m (→{{header|K}}) |
||
Line 3,821: | Line 3,821: | ||
=={{header|K}}== |
=={{header|K}}== |
||
<syntaxhighlight lang="k">gcd:{:[~x;y;_f[y;x!y]]}</syntaxhighlight> |
<syntaxhighlight lang="k">gcd:{:[~x;y;_f[y;x!y]]}</syntaxhighlight> |
||
{{works with|ngn/k}} |
|||
<syntaxhighlight lang=K>gcd:{$[~x;y;o[x!y;x]]}</syntaxhighlight> |
|||
=={{header|Klong}}== |
=={{header|Klong}}== |