#solving quadratic eequation a = int(input("Enter the value of a: ")) b = int(input("Enter the value of b: ")) c = int(input("Enter the value of c: ")) d = (b**2)-4*a*c if d>0: print("The roots are real and distinct.") x1 = (-b+d**0.5)/2*a x2 = (-b-d**0.5)/2*a print("The roots are",x1,"and",x2) elif d==0: print("The roots are real and equal.") x = (-b+d**0.5)/2*a else: print("The roots are imaginary.")
Most welcome if you want full understand of python please email us @ info@newtum.com we are providing peer coruse on python just email that u want free course
Sir your explanation is excellent. Keep it up.
Thanks a lot
#solving quadratic eequation
a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
c = int(input("Enter the value of c: "))
d = (b**2)-4*a*c
if d>0:
print("The roots are real and distinct.")
x1 = (-b+d**0.5)/2*a
x2 = (-b-d**0.5)/2*a
print("The roots are",x1,"and",x2)
elif d==0:
print("The roots are real and equal.")
x = (-b+d**0.5)/2*a
else:
print("The roots are imaginary.")
Your quadratic equation solver looks great! Any dbout feel to discuss with us.
Thank you so much sir😊
Most welcome if you want full understand of python please email us @ info@newtum.com we are providing peer coruse on python just email that u want free course
good explanation keep it up
Thank you so much for the encouragement! I appreciate your support.