Computer Science, asked by chopraakshat836, 3 months ago

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

Answers

Answered by Oreki
0

\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