70,037
社区成员
发帖
与我相关
我的任务
分享
Copy Code
// crt_pow.c
#include <math.h>
#include <stdio.h>
int main( void )
{
double x = 6.0, y = 1.0 / 3.0, z;
z = pow( x, y );
printf( "%.1f to the power of %.1f is %.1f\n", x, y, z );
}
#include <stdio.h>
#include <math.h>
int main()
{
printf("%lf", pow(6.0, 1.0/3));
return 0;
}