For starters change the first line to:
then link in the math library. For gcc add "-lm" to link in the math library.Code:#include <stdio.h> #include <math.h> int main(void){ ...
For starters change the first line to:
then link in the math library. For gcc add "-lm" to link in the math library.Code:#include <stdio.h> #include <math.h> int main(void){ ...