average.c - Computes pairwise averages of three numbers.