Respuesta :

In C:

float average(int x, int y)
{
    return (float)((x+y)/2);
}