Question: What is the flowchart for #include #include using namespace std; int main() { float a,b,c; cout < < to find the value of x the

What is the flowchart for

#include #include using namespace std;

int main() { float a,b,c;

cout << "to find the value of x the values of a,b and c are need to be provided by user "; cout << "Type value of a : "; cin >> a; cout << "Type value of b : "; cin >> b; cout << "Type value of c : "; cin >> c;

float sqrtValue = sqrt((b*b)-(4*a*c));

int x1 = (sqrtValue-b)/(2*a);

int x2 = ((-1*sqrtValue)-b)/(2*a);

cout << "values of x are: " x1 = << x1 << ", " << x2;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!