سلام این جوابتون:
#include <iostream>#include <math.h>
using namespace std;

int power(int x, int y){
return pow(x, y);
}


int main()
{
int a = 2;
int b = 3;
int res = power(a,b);
cout<<res;
return 0;
}