#include #include "math.h" #include "mine.h" #define PI 3.14159 /* Function: print_cos_avg Print the cosine of the average of x and y. */ void print_cos_avg (int x, int y) { double average ; average = avg(x,y) ; printf("Cosine of the average of %d and %d: %f\n", x, y, cos(PI * average / 180.0) ) ; }