I am trying to make a short program to give me the answer to a 1-variable equation. This should be real easy but I can't get it to work. I don't know C too well though. Maybe my syntax is wrong. The problem I am trying it with is x^3 = x + 1. Sure I could figure it out another way by, but thats not any fun. 
CODE:
#include <stdio.h>
int main()
{
float x;
x = x^3 - 1;
printf("answer is %f\n", x);
}
CODE:
#include <stdio.h>
int main()
{
float x;
x = x^3 - 1;
printf("answer is %f\n", x);
}