Find us On Facebook

Thursday, April 7, 2011

Write a program to read the value of a,b and c and display

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();

1 comments:

Unknown said...

plz also write the output of the program

Post a Comment

Programms

C,C++,VB, PL/SQL EBOOK SEARCH ENGINE