Popular Posts

30.Write a program to take the value of a , b, c and find x=(a/b)-c .

30.Write a program to take the value of a , b, c and find x=(a/b)-c .


#include
#include
int main()
{
clrscr();
float a,b,c,x;
cout<<"Enter value of a: "; cin>>a;
cout<<"Enter value of b: "; cin>>b;
cout<<"Enter value of c: "; cin>>c;
x=(a/b)-c;
cout<<"value of x: "< getch();
return 0;
}
Output:

Enter value of a: 250
Enter value of b: 85
Enter value of c: 25
value of x: -22.058823

No comments: