import math
#1
A = float(1)
B = float(0)
C = float(-4)

print( "\nThe coefficients of the equation:\n" )
print( "  Coefficient A = ", A )
print( "  Coefficient B = ", B )
print( "  Coefficient C = ", C )

root1 = (-B + math.sqrt(B**2 - 4*A*C)) / (2 * A)  # replace 0.0 with the quadratic formula
root2 = (-B - math.sqrt(B**2 - 4*A*C)) / (2 * A)


print( "\nThe roots of the equation:\n" )
print( "  Root #1 = ", root1 )
print( "  Root #2 = ", root2 )
#2
A = float(1)
B = float(5)
C = float(-36)

print( "\nThe coefficients of the equation:\n" )
print( "  Coefficient A = ", A )
print( "  Coefficient B = ", B )
print( "  Coefficient C = ", C )

root1 = (-B + math.sqrt(B**2 - 4*A*C)) / (2 * A)  # replace 0.0 with the quadratic formula
root2 = (-B - math.sqrt(B**2 - 4*A*C)) / (2 * A)


print( "\nThe roots of the equation:\n" )
print( "  Root #1 = ", root1 )
print( "  Root #2 = ", root2 )
#3
A = float(-2)
B = float(7.5)
C = float(6)

print( "\nThe coefficients of the equation:\n" )
print( "  Coefficient A = ", A )
print( "  Coefficient B = ", B )
print( "  Coefficient C = ", C )

root1 = (-B + math.sqrt(B**2 - 4*A*C)) / (2 * A)  # replace 0.0 with the quadratic formula
root2 = (-B - math.sqrt(B**2 - 4*A*C)) / (2 * A)


print( "\nThe roots of the equation:\n" )
print( "  Root #1 = ", root1 )
print( "  Root #2 = ", root2 )
#4
A = float(1)
B = float(3.5)
C = float(8)

print( "\nThe coefficients of the equation:\n" )
print( "  Coefficient A = ", A )
print( "  Coefficient B = ", B )
print( "  Coefficient C = ", C )

root1 = (-B + math.sqrt(B**2 - 4*A*C)) / (2 * A)  # replace 0.0 with the quadratic formula
root2 = (-B - math.sqrt(B**2 - 4*A*C)) / (2 * A)


print( "\nThe roots of the equation:\n" )
print( "  Root #1 = ", root1 )
print( "  Root #2 = ", root2 )
#5
A = float(5)
B = float(0)
C = float(-6.5)

print( "\nThe coefficients of the equation:\n" )
print( "  Coefficient A = ", A )
print( "  Coefficient B = ", B )
print( "  Coefficient C = ", C )

root1 = (-B + math.sqrt(B**2 - 4*A*C)) / (2 * A)  # replace 0.0 with the quadratic formula
root2 = (-B - math.sqrt(B**2 - 4*A*C)) / (2 * A)


print( "\nThe roots of the equation:\n" )
print( "  Root #1 = ", root1 )
print( "  Root #2 = ", root2 )
