-->

Facebook

Jasper Roberts - Blog

Friday, January 30, 2015

Write a C Program to evaluate algebraic exp x power5 +10 x power 4+8 x power3+4x+2

#include<stdio.h>
#include<math.h>

void main ()
{
           float x,s;
       
           printf("enter the values of x:");
           scanf("%f",&x);

          s=pow(x,5)+10*pow(x,4)+8*pow(x,3)+4*x+2;
          printf("the value of s=%f",s);
}



OUTPUT:
Enter the values of x: 1
The value of s = 25

No comments:

Post a Comment