mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-13 18:28:46 +00:00
Arithmetics+corrections (expressions only)
This commit is contained in:
parent
ee402687de
commit
eb72a6aa3d
6 changed files with 72 additions and 45 deletions
|
|
@ -1,17 +0,0 @@
|
|||
fun printString (x) {
|
||||
for i:=0, i<x.length, i:=i+1 do
|
||||
write (x[i])
|
||||
od
|
||||
}
|
||||
|
||||
n := read ();
|
||||
|
||||
x := "abcdefgh";
|
||||
|
||||
printString (x);
|
||||
|
||||
for i:=0, i<x.length, i:=i+1 do
|
||||
x[i] := x[i]+2
|
||||
od;
|
||||
|
||||
printString (x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue