/* write a function ave, that has 3 floating point numbers parameters, function returns the average of the parameters - float write main that reads 5 triples of floating point numbers, and for each triple use function ave to find and print the average */ #include //function prototype (function declaration) float ave(float, float, float); int main(){ float a, b, c, result; int i; printf("enter 5 triples\n"); for(i=0;i<5;i++){ scanf("%f%f%f",&a,&b,&c); result=ave(a,b,c); printf("average of %.2f %.2f %.2f is %.2f\n", a,b,c,result); } return 0; } //function definition float ave(float a, float b, float c){ return (a+b+c)/3; }