You are on page 1of 1

import math

a = int(input("Enter the coefficients of a:"))


b = int(input("Enter the coefficients of b:"))
c = int(input("Enter the coefficients of c:"))

d = b ** 2 - 4 * a *c
if d == 0:
print("There is one solution")

elif d > 0:
print("There are two solutions")

elif d < 0:
print("There is no solution")

You might also like