13 lines
No EOL
304 B
Text
13 lines
No EOL
304 B
Text
let test =
|
|
let r = ref 1;
|
|
for i from (1) to (5) {
|
|
for j from (1) to (5) {
|
|
r := !r * j
|
|
};
|
|
r := !r * i;
|
|
for j from (1) to (5) {
|
|
r := !r / j
|
|
}
|
|
};
|
|
print_string ("This test is ");
|
|
print_string (if (!r =? 120) then { "OK!\n" } else { "KO!\n" }) |