SyntaxFix
Write A Post
Hire A Developer
Questions
Just adding the #include <math.h> in c source file and -lm in Makefile at the end will work for me.
#include <math.h>
gcc -pthread -o p3 p3.c -lm