however, this will usually give an inaccurate answer, and we're limited to using ints. A better way would be to have it take two doubles and return a double.int Average (int integer1, int integer2) ;
That way the returned average will be more accurate, and the function will be more general. You can still pass the function integers or even floats, since the values will be automatically coerced into the types of the formal parameters.double Average (double number1, double number2) ;