import math

def rootsQEq():
    print("This program finds the real solutions to a quadratic.")
    print()

    a=0
    b=3
    c=2
   
    discriminant = b * b - 4 * a * c
    if a == 0:
        print("Cannot divide by zero")
    elif discriminant < 0:
         print("The equation has no real roots!")
    elif discriminant == 0:
         root = -b/(2*a)
         print("\nThere is a double root at", root)
    else:
         s_root_val = math.sqrt(discriminant)
         root1 = (-b + s_root_val)/(2*a)
         root2 = (-b - s_root_val)/(2*a)
         print("\nThe solutions are: ", root1, root2)
rootsQEq()

