Initial release

This commit is contained in:
Alex Dima 2016-06-09 19:25:58 +02:00
parent 90042b4f97
commit 896c60a8b9
60 changed files with 36730 additions and 2 deletions

View file

@ -0,0 +1,12 @@
-- defines a factorial function
function fact (n)
if n == 0 then
return 1
else
return n * fact(n-1)
end
end
print("enter a number:")
a = io.read("*number") -- read a number
print(fact(a))