diff options
Diffstat (limited to 'examples/10.src')
-rw-r--r-- | examples/10.src | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/10.src b/examples/10.src new file mode 100644 index 0000000..38e6259 --- /dev/null +++ b/examples/10.src @@ -0,0 +1,13 @@ +let main = () => { + let counter = 0; + + while !(counter == 10) { + print(counter); + }; + + while counter == 0 { + print(0); + }; + + return counter; +}; |