Hey guys,
Under linux, I tried this :
#include <stdio.h>
#include <math.h>
main()
{
double a= 2.0;
double b= 3.0;
printf("%f^%f=% f",a,b,pow(a,b) );
}
gcc main.c -o main
But it's not working, it says that pow function is undefined, any idea ?
Thx
Under linux, I tried this :
#include <stdio.h>
#include <math.h>
main()
{
double a= 2.0;
double b= 3.0;
printf("%f^%f=% f",a,b,pow(a,b) );
}
gcc main.c -o main
But it's not working, it says that pow function is undefined, any idea ?
Thx
Comment