Hello kadji.kahn,
I agree with everything that Sky Diploma said. In addition, you can shorten up your function a bit. This is what you currently have:
int average(int a, int b, int c, int d, int e)
{
int daverage;
daverage = (a+b+c+d+e) / 5;
return daverage;
} //end average
I would first suggest that you make your return type a double, unless you are okay with rounding to the nearest whole number. You can get rid of the daverage variable and simplify the function to the following:
double average(int a, int b, int c, int d, int e)
{
return (a+b+c+d+e) / 5.0;
}
If you decide to go the route that Sky Diploma suggested with arrays, the function wouldn't change drastically, you would just replace your arguements with an array of the correct size and replace a, b, c, d, and e with the appropriate array index.
I hope that helps a little.
-D