From 7b76c697bd9f733aa242e12a01df4dc3a065a9e0 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 25 Sep 2022 00:04:18 +0200 Subject: allow to run program from file, add ch5 example programs --- ks/ifelse.ks | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ks/ifelse.ks (limited to 'ks/ifelse.ks') diff --git a/ks/ifelse.ks b/ks/ifelse.ks new file mode 100644 index 0000000..3aa4778 --- /dev/null +++ b/ks/ifelse.ks @@ -0,0 +1,7 @@ +def fib(x) + if x < 3 then + 1 + else + fib(x-1)+fib(x-2); + +fib(10); -- cgit v1.2.3