From e3bb9a4ddc0465d4a75ca64e36416a9568c74d27 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 19 Oct 2024 21:43:48 +0300 Subject: some basic programs run --- examples/loop.lyn | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/loop.lyn (limited to 'examples/loop.lyn') diff --git a/examples/loop.lyn b/examples/loop.lyn new file mode 100644 index 0000000..0304672 --- /dev/null +++ b/examples/loop.lyn @@ -0,0 +1,6 @@ +let sum 0 +for {let i 0} {< i 1000000} {set i (+ i 1)} { + set sum (+ sum i) +} + +println sum -- cgit v1.2.3