try pow (10.0, 12.0). Even better, #include math.h
To clarify: if you do not include math.h , the compiler assumes that pow() returns an integer. Including math.h contains a prototype, for example
double pow(double, double);
So, the compiler can figure out how to handle the arguments and return value.
source share