Write the java expression of :v=4/3 * 22/7 * r3
Answers
Answered by
1
v = (4.0/3.0) * (22.0/7.0) * Math.pow(r, 3);
Answered by
1
- Write a java expression for the following.
Given expression,
v=4/3 * 22/7 * r³
The java expression for the following will be,
double v=0.0;
v=4.0/3.0 * 22.0/7.0 * Math.pow(r, 3);
Resultant data type will be double.
Similar questions