函数原型
double pow(double x, double y )
函数返回
x的y的次幂,及x^y
示例
#include <stdio.h>
#include <math.h>
int main ()
{
printf("值 8.0 ^ 3 = %lf\n", pow(8.0, 3));
return(0);
}
值 8.0 ^ 3 = 512.000000
double pow(double x, double y )
x的y的次幂,及x^y
#include <stdio.h>
#include <math.h>
int main ()
{
printf("值 8.0 ^ 3 = %lf\n", pow(8.0, 3));
return(0);
}
值 8.0 ^ 3 = 512.000000
本文标题:c函数pow()
本文链接:https://www.haomeiwen.com/subject/arfoectx.html
网友评论