#include #include using namespace std; int main(){ float a,b,c,x1,x2,discriminant,real Part,imaginaryPart; cout>a>>b>>c; discriminant=b*b-4*a*c; if(discriminant>0){ x1=(-b+sqrt(discriminant))/(2*a);...


Simply compile make the screenshot of the program after writing and the output.


#include<iostream><br>#include<cmath><br>using namespace std;<br>int main(){<br>float a,b,c,x1,x2,discriminant,real Part,imaginaryPart;<br>cout<<>a>>b>>c; discriminant=b*b-4*a*c; if(discriminant>0){ x1=(-b+sqrt(discriminant))/(2*a); x2=(-b-sqrt(discriminant))/(2*a); cout<"roots are="" real="" and=""><"x1=><><"x2=><><"roots are="" real="" and=""><"x1=x2=><><"roots are="" complex="" and=""><"x1=><><><><><"x2=><><><><>
Extracted text: #include #include using namespace std; int main(){ float a,b,c,x1,x2,discriminant,real Part,imaginaryPart; cout<"enter the="" coefficients="" a,="" b="" and="" c:="" ";="" cin="">>a>>b>>c; discriminant=b*b-4*a*c; if(discriminant>0){ x1=(-b+sqrt(discriminant))/(2*a); x2=(-b-sqrt(discriminant))/(2*a); cout<"roots are="" real="" and=""><"x1=><><"x2=><><"roots are="" real="" and=""><"x1=x2=><><"roots are="" complex="" and=""><"x1=><><><><><"x2=><><><><>

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here