Asked by Thuto
T
he volume
of a sphere is given by
[2marks]
V
=
4
/
3
(
π
r
3
)
I
f
the radius is given by a va
riable
radius
of type
double,
write a java expression
for the volume
he volume
of a sphere is given by
[2marks]
V
=
4
/
3
(
π
r
3
)
I
f
the radius is given by a va
riable
radius
of type
double,
write a java expression
for the volume
Answers
Answered by
Steve
volume = (4.0 / 3.0) * Math.PI * Math.pow(r, 3);
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.