1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#include <stdio.h>

int
main()
{
    int i = 0;
    while (i < 5) {
        printf("i = %d\n", i);
        ++i;
    }
    printf("after the loop: i = %d\n", i);
}