def solve(a, b, c):
if a==0:
print("a equals 0")
return
d = (b**2) - (4*a*c)
if d < 0:
print("**No roots**")
if d == 0:
print("**One root**")
print(round((-b - math.sqrt(d))/2*a))
x1 = (-b - math.sqrt(d))/2*a
x2 = (-b + math.sqrt(d))/2*a
print(f"**Two roots**")
print(round(x1))
print(round(x2))
if __name__ == "__main__":
a, b, c = float(input("a=")), float(input("b=")), float(input("c="))
solve(a, b, c)
def solve(a, b, c):
if a==0:
print("a equals 0")
return
d = (b**2) - (4*a*c)
if d < 0:
print("**No roots**")
return
if d == 0:
print("**One root**")
print(round((-b - math.sqrt(d))/2*a))
return
x1 = (-b - math.sqrt(d))/2*a
x2 = (-b + math.sqrt(d))/2*a
print(f"**Two roots**")
print(round(x1))
print(round(x2))
if __name__ == "__main__":
a, b, c = float(input("a=")), float(input("b=")), float(input("c="))
solve(a, b, c)