lama_byterun/regression/test075.lama
Dmitry Boulytchev 61296c51e7 Massive renaming
2020-02-16 00:21:15 +03:00

17 lines
No EOL
212 B
Text

local x;
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;
s
}
x := read ();
write (test (10, 100));
write (test (100, 10))