lama_byterun/regression/test033.expr
Dmitry Boulytchev b19bea4d58 Functions in X86
2018-04-11 00:47:46 +03:00

14 lines
No EOL
201 B
Text

fun test (n, m) local i, s {
s := 0;
for i := 0, i <= n, i := i + 1 do
s := s + i;
if s > m then return s fi
od;
return s
}
read (x);
write (test (10, 100));
write (test (100, 10))