#include <stdio.h>
#define DEBUG 0

/*
 * Program to find the max of three numbers
 * Terry Harvey CISC 105 section 98 TA George
 */

void printMax(int first, int second, int third);

int main(){

    int a = 2, b = 12, c = 37;

    printMax(a, b, c);
    printMax(1, 2, 3);
    printMax(2, 2, 3);
    printMax(3, 2, 3);
    printMax(4, 2, 3);


    return 0;
}

void printMax(int first, int second, int third){

    int max = first;

    if (DEBUG) printf("max is %d\n", max);

    if (second > max){
	max = second;
    }

    if (DEBUG) printf("max is %d\n", max);

    if (third > max){
	max = third;
    }

    printf("max is %d\n", max);
    return;
}
