i am using code block for learning c. my code is
#include
#include
int main()
{
int x;
x = pow(5,2);
printf(\"%d\", x);
}
Out
Your code correctly gives 25 on my windows x64.
You probably needs to run it again see if you just read it wrong...
The missing "return 0;" is not the problem here.
If, anything, could ever go wrong,
you can try adding
fflush(stdin);//or out
after very scanf and printf. If any of the flushes solves your problem, you know what is going wrong.