aboutsummaryrefslogblamecommitdiffhomepage
path: root/ks/forloop.ks
blob: 0efa5c389c34c0d33faf52a750aa88386a457ec9 (plain) (tree)
1
2
3
4
5
6
7






                                   
extern putchard(char);
def printstar(n)
  for i = 1, i < n, 1.0 in
    putchard(42);  # ascii 42 = '*'

# print 100 '*' characters
printstar(100);