/* File: sep1.c This file uses functions from a separately compiled object file. */ #include #include "genlib.h" #include "simpio.h" #include "mine.h" 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) ) ; print_cos_avg(a,b) ; printf("That's all folks.\n") ; }