summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/08_1.c
blob: 5cd2c0d4f08350824956131533445903ff2ce941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

main() {
    int counter;    /* loop counter */
    for (counter = 0; counter < 3; counter++) {
        int temporary = 1;
        static int permanent = 1;

        (void)printf("Temporary %d Permanent %d\n",
            temporary, permanent);
        temporary++;
        permanent++;
    }
    return (0);
}