diff options
Diffstat (limited to 'samples/helloworld.golem')
-rw-r--r-- | samples/helloworld.golem | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/helloworld.golem b/samples/helloworld.golem index 9ec0086..473331f 100644 --- a/samples/helloworld.golem +++ b/samples/helloworld.golem @@ -1,5 +1,7 @@ global str[32]; +define iterations = 9; + main() { local i; @@ -9,7 +11,7 @@ main() { i = 0; loop { i = i + 1; - if (i > 9) + if (i > iterations) break; print(str); uprint(str); |