jenreluao6361 jenreluao6361
  • 30-03-2018
  • Computers and Technology
contestada

Write a method called average that accepts two integer parameters and returns their average as a floating point value.

Respuesta :

Аноним Аноним
  • 30-03-2018
In C:

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

Otras preguntas

Identify the type of conflict. a trapper struggling to survive a hard winter A.)internal B.)external
what happens when electromagnetic waves strike a rough, dark material?
How do I come up with a good topic sentence for this chart
What factors helped the Spanish defeat the Aztec
What is one difference between closed and open primary elections?
What is the volume of 1.5 moles of chlorine gas (Cl2) at standard temperature and pressure (STP)?
The earliest organisms were most likely _____.
when hydrogen peroxide bubbles, it is undergoing a chemical change. which statement best describes what is happening?
Why do you think Ulysses cannot control his men?
Erica is almost finished with her ook. She has reached the falling action of the story. What happens to the conflict in a story during the falling action?