SyntaxFix
Write A Post
Hire A Developer
Questions
You need to link with the math library, libm:
$ gcc -Wall foo.c -o foo -lm