Ackermann function: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 6,992: Line 6,992:
3, 8: 2045
3, 8: 2045
</pre>
</pre>

=={{header|Yabasic}}==
<lang Yabasic>sub ack(M,N)
if M = 0 return N + 1
if N = 0 return ack(M-1,1)
return ack(M-1,ack(M, N-1))
end sub

print ack(3, 4)
</lang>


=={{header|Yorick}}==
=={{header|Yorick}}==