Jump to content

Greatest common divisor: Difference between revisions

m
imported>Szymon-Michalak
Line 2,620:
 
<syntaxhighlight lang="text">
procfunc gcd a b . res .
while b <> 0
h = b
b = a mod b
a = h
.
res =return a
.
callprint gcd 120 35 r
print r
</syntaxhighlight>
 
2,060

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.