/* File: inc1.c This file includes the functions from the file inc2.c. */ #include #include "genlib.h" #include "simpio.h" #include "inc2.c" main() { int a, b ; printf("Enter first number: ") ; a = GetInteger() ; printf("Enter second number: ") ; b = GetInteger() ; printf("\n") ; printf("The sum of %d and %d is: %d\n", a, b, sum(a, b) ) ; printf("The smaller of %d and %d is: %d\n", a, b, min(a, b) ) ; printf("The larger of %d and %d is: %d\n", a, b, max(a, b) ) ; printf("The average of %d and %d is: %f\n", a, b, avg(a, b) ) ; printf("The distance between %d and %d is: %d\n", a, b, dist(a, b) ) ; printf("That's all folks.\n") ; }