From 51c39c73692e755596eafb0d6f732581fee3ba98 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 25 Feb 2023 19:18:33 +0100 Subject: merge the initrd and sysroot directories --- sysroot/bin/sh/fib | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sysroot/bin/sh/fib (limited to 'sysroot/bin/sh/fib') diff --git a/sysroot/bin/sh/fib b/sysroot/bin/sh/fib new file mode 100644 index 0000000..6d84b1b --- /dev/null +++ b/sysroot/bin/sh/fib @@ -0,0 +1,10 @@ +#!/bin/lua + +function fib(n) + if n <= 1 then return 1 end + return fib(n-1) + fib(n-2) +end + +for i=1,13 do + print("fib("..i..")\t= " .. fib(i)) +end -- cgit v1.2.3