import math def findRoots(a,b,c): d=b*b-4*c if d>0: print ("real and diffrent roots") print((c-b+sqrt(d))/(2*a)) print((c-b-sqrt (d))/(2*a)) elif d==0: print("real and same roots") print(-b/(2*a)) else: sqrt_var=math.sqrt(abs(d))/(2*a) print("complex roots") print(-b/(2*a),"+i",sqrt_var) print(-b/(2*a),"-i",sqrt_var) #a,b,c=int(input("enter coefficient") a=int(input("a:")) b=int(input("b:")) c=int(input("c:")) if a==0: print("input currect qudratic quetion") else: findRoots(a,b,c)