Please write in C++ language:
Create a recursive function called power that receives two positive int parameters that represent the base and exponent. The function should return the base raised to the exponent. Place the power's function prototype in power.hpp and its implementation in power.cpp. The main function already contains some code, but you need to complete the requirements that is described inside the file.
Sample Output: Enter a base: 5 Enter an exponent: 3 5 ^ 3 = 125
Sample Output #2: Enter a base: 2 Enter an exponent: 10 2 ^ 10 = 1024
Source Code:
#include <iostream>
using namespace std;
int power(int base,int exponent)
{
if(exponent==0)
return 1;
return base*power(base,exponent-1);
}
int main()
{
int base,exponent;
cout<<"Enter base:";
cin>>base;
cout<<"Enter exponent:";
cin>>exponent;
int result=power(base,exponent);
cout<<base<<"^"<<exponent<<"
="<<result<<endl;
}

Sample input and output:


Please write in C++ language: Create a recursive function called power that receives two positive int...