Answer to Question #225207 in Python for Reclimet

Question #225207

Roots of a quadratic equation


This Program name is Roots of a quadratic equation. Write a Python program to Roots of a quadratic equation, it has two test cases


The below link contains Roots of a quadratic equation question, explanation and test cases


https://docs.google.com/document/d/1Wz9yIZ4GQON9tJEmSTAbcMunwn95k5PB/edit?usp=sharing&ouid=104486799211107564921&rtpof=true&sd=true


We need exact output when the code was run

1
Expert's answer
2021-08-11T06:26:55-0400
a = int(input('a = '))
b = int(input('b = '))
c = int(input('c = '))
r1 = (-b + (b**2 - 4*a*c)**0.5)/2*a
r2 = (-b - (b**2 - 4*a*c)**0.5)/2*a
print(r1, r2, sep='\n')

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

Janvi jha
01.03.23, 16:41

Thankyou

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS