编写函数mypow(),函数的功能是计算a的n次方;在主函数中调用mypow函数求… 1、float mypow(float x,int n){float ans=1;int i;for(i=0;in;i++)ans*=x;return ans;}没有使用快速幂。 2、在math.h中有一个库函数pow,其原型为 double pow(doubl…