summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/09_1.c
blob: 805521b25bfc387ad9590f80947c3313c12a31a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
int data[10];    /* some data */
int twice[10];   /* twice some data */

main()
{
    int index;   /* index into the data */

    for (index = 0; index < 10; index++) {
        data[index] = index;
        twice[index] = index * 2;
    }
    return (0);
}