Computer Applications
Write a Java statement for the following mathematical expression :
V = πr2h
Java Operators
23 Likes
Answer
V = 1.0 / 3.0 * Math.PI * r * r * h
Answered By
16 Likes
Related Questions
What will be the output of the following statements?
int a = 3; System.out.println(" " + (1 + a)); System.out.println(" " + 1 + a);Find the output of the following code.
String str = "I Love My Family"; System.out.println(Integer.toString(str.length())); System.out.println(str.substring(12));Write the value of n and m after execution of the following code.
int m; int n; m = 5; n = (5 * ++m) % 3; System.out.println("n = " + n + "m =" + m);Predict the output
(a) Math.pow(3.4, 2) + 2 * Math.sqrt(64)
(b) Math.ceil(3.4) + 2 * Math.floor(3.4) + 2