I'm trying to do a example of exponent en " DEV C++ " compilator and I can't get the output
this is the code :
int main (void)
double base, exponent, result;
result = pow(base, exponent);
printf("%.1lf^%.1lf = %.21f", base, exponent, result);
and i get this :
what could be the problem ?
You showed us the code from
exponente.c (I guess), but the error message in the screenshot says:
error in math.h
included from teorema.c
So you should read the error messages very carefully and look for the buggy code in the other file.
It's important to remember that I'm using DEV c++, which have lot of errors and libraries which doesn't work.
I download GCC and MinGW for windows. I compile the same source code in MS-Dos and it worked.
I guess finally I going to use just GCC and I'll forget DEV C++.