发布网友
共1个回答
热心网友
double power(float x,int n)
{
double ans=1;
int i;
for(i=1;i<=n;++i)ans*=x;
return ans;
}