diff --git a/modules/for-loop.md b/modules/for-loop.md index 5d77e8fa..542f72d6 100644 --- a/modules/for-loop.md +++ b/modules/for-loop.md @@ -17,7 +17,7 @@ while () { } ``` -Using the for loop is very often easier and more readable. +Using the `for` loop is very often easier and more readable. Example: ```C @@ -42,13 +42,15 @@ for (int i = 0; i < 10; ++i) { (i.e. it jumps **at** the enclosing `}`) but the `` part is executed. The execution then continues with the `` test. Example: -``` +```C for (int i = 0; i < 3; ++i) { printf("%d\n", i); continue; putchar('a'); } - +``` +actual output: +``` $ ./a.out 0 1