Jump to content

Greatest common divisor: Difference between revisions

m
no edit summary
(Added TypeScript example for GCD)
mNo edit summary
Line 3,010:
end
return x</lang>
 
=={{header|Ring}==
<lang>
see gcd (24, 32)
func gcd gcd, b
while b
c = gcd
gcd = b
b = c % b
end
return gcd
</lang>
 
=={{header|Ruby}}==
2,468

edits

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