Coffee Room

Discuss anything here - everything that you wish to discuss with fellow engineers.

12774 Members

Join this group to post and comment.

# Discriminant in C++

I'm having some problem on a program i create. the purpose of this program is to identify what type of conic using discriminant.

#include

#include

#inlude

int main ()

{

clrscr ();

int B,A,C, sub;

cout<<"Enter the value for B:";

cin>>B;

cout<<"Enter the value for A:";

cin>>A;

cout<<"Enter the value for C:";

cin>>C;

sub=(B^2)-(4*A*C);

.....end

can someone help me on how to continue it???

- f
*B*2 − 4*A**C*< 0, the equation represents an ellipse;- if
*A*=*C*and*B*= 0, the equation represents a circle, which is a special case of an ellipse;

- if
- if
*B*2 − 4*A**C*= 0, the equation represents a parabola; - if
*B*2 − 4*A**C*> 0, the equation represents a hyperbola;- if we also have
*A*+*C*= 0, the equation represents a rectangular hyperbola.

- if we also have

#include

#include

#inlude

int main ()

{

clrscr ();

int B,A,C, sub;

cout<<"Enter the value for B:";

cin>>B;

cout<<"Enter the value for A:";

cin>>A;

cout<<"Enter the value for C:";

cin>>C;

sub=(B^2)-(4*A*C);

.....end

can someone help me on how to continue it???