Quadratic Equation Solution | Codewindow.in

Solution : Python 3

#------------------


# Codewindow.in
# Quadratic Equation solution

import math
a=int(input())

b=int(input())

c=int(input())

x1=((-b+math.sqrt((b*b)-4*a*c))/2*a)
x2=((-b-math.sqrt((b*b)-4*a*c))/2*a)

print(x1,x2)


#-------end--------------

Follow us

Also Checkout

Leave a Comment

Your email address will not be published. Required fields are marked *