Run ID:68290
提交时间:2024-03-22 20:54:44
#include<bits/stdc++.h> using namespace std; int n(int m,int f){ if (f==1){ return m; }else{ return m*n(m,f-1); } } int main(){ int h,g; cin>>h>>g; if (h>0&&g>0&&g<10){ cout<<n(h,g); } return 0; }