Skip to content

Commit

Permalink
Add demo files
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 8, 2024
1 parent 5c24910 commit 16380f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demo/contents/fact.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function fact(n, acc)
acc = acc or 1
if n == 0 then
return acc
end
return fact(n-1, n*acc)
end
print(fact(tonumber(arg[1])))
12 changes: 12 additions & 0 deletions demo/contents/months.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
August
November
March
January
July
May
October
February
December
April
September
June

0 comments on commit 16380f3

Please sign in to comment.