sunlang/tests/test_while.sun

8 lines
99 B
Plaintext

function loop(max) {
var i = 0;
while (i < max) {
i = i + 1;
}
return i;
}