#include<iostream>
using namespace std;
int pow(int, int);
int main()
{
int x,p,ans;
cout<<"Enter a number";
cin>>x;
cout<<"Enter the power of the number";
cin>>p;
ans=pow(x, p);
cout<<ans;
return 0;
}
int pow(int x, int p)
{
int a=1,i;
for(i=0;i<=p;i++)
{
a=a*x;
}
return a;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBwb3coaW50LCBpbnQpOwppbnQgbWFpbigpCnsKaW50IHgscCxhbnM7CmNvdXQ8PCJFbnRlciBhIG51bWJlciI7CmNpbj4+eDsKY291dDw8IkVudGVyIHRoZSBwb3dlciBvZiB0aGUgbnVtYmVyIjsKY2luPj5wOwphbnM9cG93KHgsIHApOwpjb3V0PDxhbnM7CnJldHVybiAwOwp9CgppbnQgcG93KGludCB4LCBpbnQgcCkKewppbnQgYT0xLGk7CmZvcihpPTA7aTw9cDtpKyspCiAgICB7CiAgICAgICAgYT1hKng7CiAgICB9CiAgICByZXR1cm4gYTsKfQ==