C program to calculate the average, geometric and harmonic mean of n elements in an array. Includes full code, output and explanation.