Answer to Question #243579 in C++ for Imman

Question #243579

a,b,c = int user


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


flowchart, pseudocode, c++


1
Expert's answer
2021-09-28T06:23:29-0400



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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS