Three variables a,b,c are given write a c program to compute and display the value of x,where x=a/(b-c).


#include<stdio.h>
#include<conio.h>
void main()
{

int a,b,c;
float x;
clrscr();
printf("Enter value of a,b,c:");
scanf("%d %d %d",&a ,&b ,&c);
x=a/(b-c);
printf("Value of x:%f",x);
getch();
}

Comments

Post a Comment