mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 07:38:46 +00:00
Implemented control constructs
This commit is contained in:
commit
a60a491e73
23 changed files with 487 additions and 9 deletions
9
regression/test021.expr
Normal file
9
regression/test021.expr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
read (n);
|
||||
f := 1;
|
||||
|
||||
for skip, n >= 1, n := n-1
|
||||
do
|
||||
f := f * n
|
||||
od;
|
||||
|
||||
write (f)
|
||||
Loading…
Add table
Add a link
Reference in a new issue