ICSE Class 10 Computer Applications Question 29 of 76

Revising Basic Java Concepts — Question 33

Back to all questions
33
Question

Question 15(c)

Write the following as Java expressions.

43πr3\dfrac{4}{3} \pi r^3

Answer

4.0 / 3.0 * Math.PI * Math.pow(r,3)