Computer Science, asked by manju2074devi, 6 months ago

Java expression for
X = -b+b2-4ac÷2a

Answers

Answered by Imblank
3

Answer:

import java.lang.math;

x = (-b+sqrt(b*b-4*a*c))/2*a

Read my bio once

Answered by Oreki
5

\textsf{\large \textbf{Given Expression}}

   X = \dfrac{-b + \sqrt{b^2 - 4ac}}{2a}

\textsf{\large \textbf{Java Expression}}

   \texttt{X = (-b + Math.sqrt(b * b + 4 * a * c)) / 2 * a;}

Similar questions