Computer Science, asked by rinkynegi2007, 5 months ago

write a java expression a² + b² + 2ab​

Answers

Answered by sohamkonar2020
4

Answer:

a^2+b^2+2*a*b

or Math.pow(a,2)+Math.pow(b,2)+2*a*b

Answered by Oreki
4

\textsf{\large Given Expression}

    a^{2} + b^{2} + 2ab \: \: \textsf{\textbf{or,}}\\\: \: (a + b)^{2}

\textsf{\large Java Expression}

    \texttt{Math.pow(a + b, 2);}

Similar questions