#include <stdio.h>
#define DATA_SIZE 100
/*
 * Program to introduce for loops 
 * Terry Harvey CISC 105 section 98 TA Janet
 *
 * Why is the defined constant a good idea? How can we make the array
 * bigger or smaller, i.e. what would have to be changed?
 */

int main(){
    int i;
    int data[DATA_SIZE];

    data[0] = 0; /* What happens to this assignment? */
    data[1] = 1;
    data[2] = 2;
    data[3] = 3;

    i = 0;
    /* Put data int the array */
    while(i < DATA_SIZE){
	data[i] = i;
	printf("%d\n", i); /* This does not test whether program works! */
	i++;
    }// i is now DATA_SIZE

    /* Print array contents */
    for (i = 0; i < DATA_SIZE; i++){
	printf("%d\n", data[i]);
    }

    return 0;
}
