code blocks power function is not working in c

前端 未结 5 843
陌清茗
陌清茗 2021-01-26 19:47

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         


        
5条回答
  •  半阙折子戏
    2021-01-26 20:37

    It seems that there is nothing wrong with the second program, except that you must add at the end

    return 0;
    

    If you read the value j with 2 then the result will be just 25.

提交回复
热议问题