Computer Science, asked by nave01, 11 months ago

Write an Equivalent java Expression
2nd​

Attachments:

Answers

Answered by Oreki
3

\textsf{\large Given Expression}

   x = \dfrac{-b \: \: \pm \: \: \sqrt{b^2 - 4ac}}{2a}

\textsf{\large Java Expression}

    \texttt{x = \{(-b + Math.sqrt(b * b - 4 * a * c)) / 2 * a,}\\\texttt{\hspace{1.95em} (-b - Math.sqrt(b * b - 4 * a * c)) / 2 * a\}}

Similar questions