X-Git-Url: http://git.harvie.cz/?p=svn%2FCll1h%2F.git;a=blobdiff_plain;f=demos%2Frepeat.c;fp=demos%2Frepeat.c;h=53ddf6abcf079d500242698a91e8647da9199b22;hp=b6229e928c4ad2981c4b53fa3f68604311825b39;hb=d306de9aa961693bd18f9c284cd9407819dd85ec;hpb=a3c2aecbff1dd82a26f3a69a3e1fdc04349b8d7a diff --git a/demos/repeat.c b/demos/repeat.c index b6229e9..53ddf6a 100644 --- a/demos/repeat.c +++ b/demos/repeat.c @@ -14,6 +14,18 @@ program { printf("[doing this %d times] ",i); } + repeat(0) + { + printf("[doing this 0 times] ",i); + } + repeat(-1) + { + printf("[doing this -1 times] ",i); + } + repeat(1) + { + printf("[doing this 1 times] ",i); + } print("... finished."); } }