Question #243579

a,b,c = int user


x=\frac{-b+\sqrt{b^2-4ac}}{2a}


flowchart, pseudocode, c++


Expert's answer



a = input()
b = input()
c = input()

d = b * b - 4 * a * c

if d < 0 -> no real roots (imaginary roots)
if d = 0 -> x = -b / (2 * a)
if d > 0 -> x1 = (-b - sqrt(d)) / (2 * a), x2 = (-b + sqrt(d)) / (2 * a) 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS