aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/fibonacci.ds10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/fibonacci.ds b/examples/fibonacci.ds
new file mode 100644
index 0000000..b71b23c
--- /dev/null
+++ b/examples/fibonacci.ds
@@ -0,0 +1,10 @@
+LET a = 0
+LET b = 1
+LET count = 0
+LBL loop
+LET c = a+b
+LOGVAR a
+LET a = b
+LET b = c
+INC count IF count < 20; GOTO loop
+EXIT