Computer Science, asked by geetabhardwaj955, 26 days ago

write the java expressions for the following:​

Attachments:

Answers

Answered by Oreki
4

\textsf{\large Java Expressions}

   \begin{small}\textsf{I. \texttt{c = Math.sqrt(a * a + b * b);}}\\\textsf{II. \texttt{r = a * a + b * b;}}\\\textsf{III. \texttt{y = a * x * x * x + b * x + c;}}\\\textsf{IV. \texttt{z = x + Math.pow(2, y);}}\\\textsf{V. \texttt{area = Math.sqrt(s * (s - a) * (s - b) * (s - c));}}\end{small}

   \begin{small}\textsf{VI. \texttt{(Math.pow(a, x) + Math.pow(b, y)) / (Math.cbrt(x) + Math.cbrt(y));}}\\\textsf{VII. \texttt{Math.pow(a + b, n) / (Math.sqrt(3) + b);}}\\\textsf{VIII. \texttt{Math.abs(m) + (Math.abs(n);}}\\\textsf{IX. \texttt{4 / 3 + Math.PI + r * r * r;}}\\\textsf{X. \: $\cdot$ Math.pow(a + b, 2); \: and,}\\\textsf{\hspace{1.5em} $\cdot$ a * a + b * b + 2 * a * b;}\end{small}

Similar questions