added while

This commit is contained in:
IgorCielniak
2025-12-25 10:31:40 +01:00
parent 6988a89a51
commit 60ec54e58c
2 changed files with 38 additions and 0 deletions

13
while_test.sl Normal file
View File

@@ -0,0 +1,13 @@
import stdlib/stdlib.sl
import stdlib/io.sl
: main
10
begin
dup 0 >
while
dup puti cr
1 -
repeat
drop
;