Computer Science, asked by chopraakshat836, 4 months ago

write the java expression for the following π r 2 +π r 3​

Answers

Answered by atrs7391
3

Given Expression:

π r 2 +π r 3​

Java Expression:

(3.14*Math.pow(r,2))+(3.14*Math.pow(r,3))

Answered by Oreki
2

\textsf{\large Given Expression}

    \pi{r}^{2}  + \pi{r}^{3}  \:\: \textsf{or,} \\ \pi{r}^{2}(1 + r)

\textsf{\large Java Expression}

    \texttt{Math.PI * r * r * (1 + r);}

Similar questions