Solve Evaluation of a polynomial. - C Data Type

C examples for Data Type:float

Description

Solve Evaluation of a polynomial.

Demo Code

#include<stdio.h>

int main (void)
{
    float result;
    float x = 2.55;

    result = 3 * x * x * x + 5 * x * x + 6;

    printf("result = %f", result);

    return 0;//from   ww  w  . jav  a  2s.  co m
}

Result


Related Tutorials