使用递归函数myPowerFunction(int,int,integer)计算p的n次方(p和n都是正整数)。currentCallNumber是一个引用参数,存储到目前为止的函数调用次数。myPowerFunction返回p的n次方。int myPowerFunction(int p, int n, int &z) z++; else if(n==0)return 1;else
尝试打印a^n,但出现错误that a and n aren't defined as variables。这就是我现在所拥有的。public class FermatsTheorem {
fermatsTheorem(a, n); public static void fermatsTheorem(double a, double n){
double aToTheNt