Given the value of three variables a,b and c, write a program to compute and display the value of x, where
x = a/(b-c);
Execute your program for the following values:
a = 250, b = 85, c = 25
#include<stdio.h>
void main()
{
int x,a,b,c;
a=250,b=85,c=25;
x=a/(b-c);
printf("Answer is %d",x);
getch();
}
x = a/(b-c);
Execute your program for the following values:
a = 250, b = 85, c = 25
#include<stdio.h>
void main()
{
int x,a,b,c;
a=250,b=85,c=25;
x=a/(b-c);
printf("Answer is %d",x);
getch();
}
No comments:
Post a Comment