File: lua.lua

package info (click to toggle)
golang-github-gabriel-vasile-mimetype 1.4.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 9,720 kB
  • sloc: javascript: 3; makefile: 3; tcl: 1; php: 1; python: 1; perl: 1
file content (8 lines) | stat: -rw-r--r-- 118 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/usr/bin/lua
function fact(n)
    if n == 0 then
       return 1
    else
       return n * fact(n - 1)
    end
 end