/* Title: Quadratic Equation Solver in C++ Made By: Aneesh Bhatnagar Author Website: http://www.slashcoding.com Feel free to use the source code wherever you want, giving proper credits to the author. */ #include #include #include void main() { clrscr(); float a,b,c,d,x1,x2; cout<<"\nA quadratic equation is given as: aX^2 + bX + c = 0"; cout<<"\nEnter a,b,c : "; cin>>a>>b>>c; d=(b*b)-(4*a*c); if(d>=0){ x1=(-b+sqrt(d))/(2*a); x2=(-b-sqrt(d))/(2*a); cout<<"\nThe roots of the quadratic equation are : "<