I am getting an error fors x in the polynomial expression.If i put my cursor it says Expected:a';'
Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
include<stdio.h>
include<stdlib.h>
int main(void)
{
double x=2.55;
double polynomial=3x^3-5x^2+6;
printf("The value of polynomial is %lf\n",polynomial);
system("pause");
return(EXIT_SUCCESS);
}
Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
Thanks