Skip to main content
edited the title
Source Link
kzidane
  • 17.7k
  • 3
  • 28
  • 100

Evaluating Why do I get an error when trying to evaluate a polynomial in C?

Does anyone know what I'm missing? Does anyone know what I'm missing?

#include <stdio.h>

int main(void)
{
    float y = 2.55;
    float total = 3(y)(y)(y) - 5(y)(y) + 6;

    printf("%f\n", total);

    return 0;
}

Evaluating a polynomial in C

Does anyone know what I'm missing?

#include <stdio.h>

int main(void)
{
    float y = 2.55;
    float total = 3(y)(y)(y) - 5(y)(y) + 6;

    printf("%f\n", total);

    return 0;
}

Why do I get an error when trying to evaluate a polynomial in C?

Does anyone know what I'm missing?

#include <stdio.h>

int main(void)
{
    float y = 2.55;
    float total = 3(y)(y)(y) - 5(y)(y) + 6;

    printf("%f\n", total);

    return 0;
}
Source Link

Evaluating a polynomial in C

Does anyone know what I'm missing?

#include <stdio.h>

int main(void)
{
    float y = 2.55;
    float total = 3(y)(y)(y) - 5(y)(y) + 6;

    printf("%f\n", total);

    return 0;
}