100k views
2 votes
33. The following statement calls a function named half, which returns a value that is half that of the argument passed to it. Assume that result and number have both been defined to be double variables. Write the half function. result = half(number);

User CBlew
by
6.5k points

1 Answer

7 votes

Answer:

Explanation:

#using java

Double result;

public Double half(Double number){

return number/2;

}

result=half(number);

User BRICK MANE
by
6.7k points