feat: add while loops
This commit is contained in:
parent
14717958c6
commit
538205e8a5
29 changed files with 1248 additions and 282 deletions
9
examples/fibo.ltor
Normal file
9
examples/fibo.ltor
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
set a to 1
|
||||
set b to 1
|
||||
set i to 0
|
||||
while i < 10 do
|
||||
set c to a
|
||||
set a to a+b
|
||||
set b to c
|
||||
print_number a
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue