1 2 3 4 5 6 7 8 9 10 11 12 13 14
extern const printf: fn(fmt: ?&c_char, ...) c_int; const main = fn { var value = 23 + 50; if value < 23 printf("less!\n"); else printf("more!\n"); while value >= 0 { printf("value: %ld\n", value); value = value - 1; } }