-->

Facebook

Jasper Roberts - Blog

Friday, January 30, 2015

Write a C Program to evaluate algebraic exp (ax+b)/(ax-b)

#include<conio.h>
#include<stdio.h>

void main()
{
         int a,b,x;
         float s;
         clrscr();

         printf("enter the values of a,b,x...");

         scanf("%d%d%d",&a,&b,&x);
 
         s=(a*x+b)/(a*x-b);
         printf("the value of s=%f",s);
}


OUTPUT:
Enter the values of a,b,x… 1 3 2
The value of s=5

No comments:

Post a Comment