问答题
计算题
函数原型:
double power(doulbe x,int n);
会计算并返回xn。因此power(5.0,4)会计算5.0*5.0*5.0*5.0,它的结果是625.0。将power()函数实现为递归函数,再用适当的main版本演示它的操作。
【参考答案】
点击查看答案
