#include <iostream>
using namespace std;
int pow(int a , int b){
if (b==0) //base case
return 1;
return a*pow(a,b-1); // power calculation
}
int main() {
int a;
cin>>a;
int b;
cin>>b;
cout<<pow(a,b); //printing final output
}
To embed this project on your website, copy the following code and paste it into your website's HTML: