六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦>學(xué)習(xí)英語(yǔ)>專業(yè)英語(yǔ)>計(jì)算機(jī)英語(yǔ)> c語(yǔ)言中pow的用法

c語(yǔ)言中pow的用法

時(shí)間: 長(zhǎng)思709 分享

c語(yǔ)言中pow的用法

  c語(yǔ)言中pow的用法的用法你知道嗎?下面小編就跟你們?cè)敿?xì)介紹下c語(yǔ)言中pow的用法的用法,希望對(duì)你們有用。

  c語(yǔ)言中pow的用法的用法如下:

  原型:extern float pow(float x, float y);

  用法:#include

  功能:計(jì)算x的y次冪。

  說(shuō)明:x應(yīng)大于零,返回冪指數(shù)的結(jié)果。

  舉例:

  // pow.c

  #include

  #include

  #include

  void main()

  {

  printf("4^5=%f",pow(4.,5.));

  getchar();

  }

  #include

  #include

  void main( void )

  {

  double x = 2.0, y = 3.0, z;

  z = pow( x, y );

  printf( "%.1f to the power of %.1f is %.1f ", x, y, z );

  }

  Output

  2.0 to the power of 3.0 is 8.0

533298