123 Eng

### Engineering the engineers™

Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

Computer Science / IT
Electronics
Electrical
Mechanical
Chemical
Civil

CAT / MBA

GMAT / Foreign MBA
Latest Jobs

Displaying  Source Code(s)

 Solving Quadratic Equations using Factorisation:( Shows SOLUTION ) -------------------------------------------------------------------------------- Description : Prints the Solution of a Quadratic Equation on Screen as you would solve it using Factorisation. Each and every step is shown as it is solved on paper. #include #include #include #include void main() { cout<<" Quadratic Equation Calculator"<>a; cout<<" Please enter the value of b: "; cin>>b; cout<<" Please enter the value of c: "; cin>>c; x=((-b+sqrt((b*b)-(4.0*a*c)))/(2.0*a)); y=((-b-sqrt((b*b)-(4*a*c)))/(2*a)); clrscr(); cout<<"HERE IS THE SOLUTION USING FACTORISATION
; cout.setf(ios::showpos); float mul=(x*-1)*(y*-1); cout<<" x²"<<(y*-1)+(x*-1)<<"x"<; cout<<" x²"<; // x²+2x-1x-2=0 cout<<" x(x"<; // x(x+2)-1(x+2) cout<<" (x"<; // (x-1) (x+2)=0 cout.unsetf(ios::showpos); cout<<" x="<; cout<<" Sanchit Karve born2c0de@hotmail.com"; exit(EXIT_SUCCESS); }

Contribute content or training reports / feedback / Comments
job placement papers