From f7bbfdb36b52096f29760504e87fd5cd9e5fedc1 Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:55:04 +0200 Subject: [PATCH] Add examples/counting.claro from Claro v1.17.26 zip --- examples/counting.claro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/counting.claro diff --git a/examples/counting.claro b/examples/counting.claro new file mode 100644 index 0000000..a6b0c19 --- /dev/null +++ b/examples/counting.claro @@ -0,0 +1,21 @@ +# Counting Example +# Shows how to use DO TIMES and REPEAT loops + +SAY "Counting with DO TIMES:" +SET counter TO 1 + +DO 5 TIMES + SAY counter + SET counter TO counter + 1 +DONE + +SAY "" +SAY "Counting down with REPEAT:" +SET n TO 5 + +REPEAT + SAY n + SET n TO n - 1 +UNTIL n = 0 + +SAY "Blastoff!"