even more colorizer tests

This commit is contained in:
Martin Aeschlimann
2016-04-11 16:03:25 +02:00
parent 34470d1810
commit 8509d4e47a
42 changed files with 27035 additions and 0 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))