#!/usr/local/bin/lua52 -- Ackermann Funktion in Lua --[[A multi-line comment --]] function ack(M,N) if M == 0 then return N + 1 end if N == 0 then return ack(M-1,1) end return ack(M-1,ack(M, N-1)) end print ("Ack(3,8) = ",ack(3,8) ) print ("Ack(4,0) = ",ack(4,0) )