the value of x, where
X=A/B-C
#include<conio.h>
#include<iostream.h>
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 = "<<x;
}
getch();
X=A/B-C
#include<conio.h>
#include<iostream.h>
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 = "<<x;
}
getch();
1 comments:
plz also write the output of the program
Post a Comment