Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~56 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for Nur_15

` #include<iostream> #include<cmath> #include<iomanip> #include<fstream> #include<string> using namespace std; int main() { const int num=10; double a[num],b[num],c[num],disc,x1[num],x2[num],qe,x,realpart,imaginarypart; char answer; do { for (int index=0; index<num;index++) { cout<<"Enter coefficient of a (a>0): "; cin>>a[index]; cout<<"Enter coefficient of b: "; cin>>b[index]; cout<<"Enter coefficient of c: "; cin>>c[index]; qe=a[index]*(pow(x,2))+(b[index]*x)+(c[index]); disc=(pow(b[index],2))-(4*a[index]*c[index]); if (disc>=0) { …

Member Avatar for tinstaafl
0
56