Write a program to read the value of a,b and c and display the value of x, where X=A/B-C
/*Write a program to read the value of a,b and c and display
the value of x, where
X=A/B-C */
#include
#include
void main()
{
float x,a,b,c,check;
clrscr();
cout<<"\nEnter value for a,b and c respectively\n";
cin>>a>>b>>c;
check=b-c;
if(check == 0)
cout<<"\n\nIMAGINARY NUMBERS\n";
else
{
x=a/(b-c);
cout<<"\n\nValue of X = "<
getch();
}