Create a function that returns the average of three integers. input: 3 integers output: average(of

Create a function that returns the average of three integers.
input: 3 integers
output: average (of type double)
abg051372
Asked Nov 01, 2012
myaverage(x,y,z)
integer x,y,z;
{ double d;
d = (x+y+z) /3;
printf("The average is: %f\n",d);
}
Rob
Answered Nov 02, 2012

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.

Categories