2条回答 默认 最新
- 快乐鹦鹉 2021-09-16 21:35关注
#include <math.h>后,直接可以pow(a,b)这样求得指数
#include <stdio.h> #include <math.h> void main() { double d = pow(1.0/3,-2) +pow( (sqrt(2010.0) - sqrt(2012.0)),0); printf("%lf",d); }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用
#include <math.h>后,直接可以pow(a,b)这样求得指数
#include <stdio.h>
#include <math.h>
void main()
{
double d = pow(1.0/3,-2) +pow( (sqrt(2010.0) - sqrt(2012.0)),0);
printf("%lf",d);
}