Jump to content

Ackermann function: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6,992:
3, 8: 2045
</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}}==
672

edits

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