Computer Science, asked by Kapilpahal38971, 8 months ago

Write the java expression of :v=4/3 * 22/7 * r3

Answers

Answered by Oreki
1

v = (4.0/3.0) * (22.0/7.0) * Math.pow(r, 3);

Answered by anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Question:-}

  • Write a java expression for the following.

\star\:\:\:\sf\large\underline\blue{Answer:-}

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