import math
import sys
print("Hello!")
print("Your second degree polynomial will be the form: a X^2+ b X+ c =0")
a = float(input("Enter a: "))
b = float(input("Enter b: "))
c = float(input("Enter c: "))
Delta = b*b-(4*a*c)
if Delta < 0:
print("The solutions are complexe numbers")
sys.exit()
sqrtDelta = math.sqrt(Delta)
if Delta > 0:
root1 = (-b+sqrtDelta)/2*a
root2 = (-b-sqrtDelta)/2*a
print("The solutions are: Root 1 = " + str (root1) + " and Root 2 = " + str(root2))
elif Delta == 0:
root = -b/2*a
print("The double solution is:" + str (root))