add src-space/* and clear src files
This commit is contained in:
1 parent
2f2e0759fd
commit
9e38b7ca63
13 files changed
+90
-73
No files matched your search
@@ -6,8 +6,10 @@ TARGET = main.lua
|
||||
|
||||
BUILD_DIR = ../../build
|
||||
|
||||
OUTPUT = lua.luac
|
||||
|
||||
build:
|
||||
${CC} -o ${BUILD_DIR}/lua.luac ${SRC_DIR}/${TARGET}
|
||||
${CC} -o ${BUILD_DIR}/$(OUTPUT) ${SRC_DIR}/${TARGET}
|
||||
|
||||
run: build
|
||||
lua ${BUILD_DIR}/lua.luac
|
||||
lua ${BUILD_DIR}/$(OUTPUT)
|
||||
@@ -1,11 +0,0 @@
|
||||
local function fib(n)
|
||||
if n == 0 or n == 1 then
|
||||
return n
|
||||
else
|
||||
return fib(n - 1) + fib(n - 2)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local n = io.read("*n")
|
||||
print(fib(n))
|
||||
Reference in new issue
Block a user