/* A function, imax2, to return the larger of its two int arguments */ int imax2 (int i1, int i2) { if (i1 > i2) { return i1; } else { return i2; } } /* a main function for testing: */ #include main () { int i; for (i = 10; i > 0; i-- ) { printf("Max of 5 and %d is %d.\n", i, imax2(5, i)); } }