ICSE Class 10 Computer Applications Question 23 of 30

Solved Sample Paper 1 — Question 23

Back to all questions
23
Question

Question 2(iii)

Write a Java statement for the following mathematical expression :

V = 13\dfrac{1}{3}πr2h

Answer

V = 1.0 / 3.0 * Math.PI * r * r * h