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
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
Get step-by-step solutions from verified subject matter experts
