Jump to content

Find limit of recursion: Difference between revisions

m
m (→‎{{header|R}}: whitespace)
m (→‎{{header|Ruby}}: whitespace)
Line 471:
 
=={{header|Ruby}}==
<lang ruby>def recurse x
def recurse x
puts x
recurse(x+1)
end
 
recurse(0)</lang>
</lang>
Produces a SystemStackError:
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.