#include <stdio.h>
#define SENTINEL -1

/*
 * Program to show a sentinel loop. A sentinel is a value reserved for
 * telling a loop to stop running. When selecting a sentinel, be
 * certain that it isn't a possible real value in your data set. In
 * this course we will use sentinels in while loops only.
 *
 * Terry Harvey CISC 105 section 98 TA Janet
 */

void printHey();

int main(){

    int input;
    printf("Enter an integer: ");
    scanf("%d", &input);

    while(input != SENTINEL){
	printHey();
	printf("Enter an integer: ");
	scanf("%d", &input);
    }
    return 0;
}

void printHey(){
    printf("hey");
    return;
}
