lama_byterun/regression/test034.expr

20 lines
223 B
Text
Raw Normal View History

global n, x, i;
2018-11-01 15:08:13 +03:00
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
2019-04-02 19:51:46 +03:00
x[i] := x[i]+2
2018-11-01 15:08:13 +03:00
od;
printString (x)