c函数pow()
2019-12-02 本文已影响0人
luckybabying
函数原型
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