答案

周金明  •  1年前


#include<bits/stdc++.h> 
using namespace std; 
long long f(int x,int n) 

if(n==0) 

 return 1; 

return f(x,n-1)*x; 


int main() 

int n,x; 
cin>>x>>n; 
cout<<f(x,n); 
return 0; 
}


评论: