X-Git-Url: http://git.harvie.cz/?p=svn%2FCll1h%2F.git;a=blobdiff_plain;f=demos%2Frepeat.c;fp=demos%2Frepeat.c;h=db3726a31cbeb55d1986a43e50b79b5ca6057fa5;hp=53ddf6abcf079d500242698a91e8647da9199b22;hb=eb0d8f8c793b40623f60e51c055f8a7cb7cae668;hpb=d306de9aa961693bd18f9c284cd9407819dd85ec diff --git a/demos/repeat.c b/demos/repeat.c index 53ddf6a..db3726a 100644 --- a/demos/repeat.c +++ b/demos/repeat.c @@ -9,7 +9,7 @@ program print("This is demonstration, that nesting of C<<1 repeat(N) { ... } flow-control macro is completely safe:"); repeat(i++) { - echo("Outer loop is supposed to be done twice: "); + echo("Outer loop is supposed to be repeated twice: "); repeat(i) { printf("[doing this %d times] ",i); @@ -28,5 +28,9 @@ program } print("... finished."); } - } + } + repeat(--i) + { + print("Last loop is not nested and it is supposed to be repeated again just twice."); + } }