diff options
Diffstat (limited to 'ks/forloop.ks')
-rw-r--r-- | ks/forloop.ks | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ks/forloop.ks b/ks/forloop.ks new file mode 100644 index 0000000..0efa5c3 --- /dev/null +++ b/ks/forloop.ks @@ -0,0 +1,7 @@ +extern putchard(char); +def printstar(n) + for i = 1, i < n, 1.0 in + putchard(42); # ascii 42 = '*' + +# print 100 '*' characters +printstar(100); |