#include <iostream.h>
int main()
{
long int n=0;
long int p;
long int a=1;
cout <<"Enter The Number Whose Power You Want To CAlculate = ";
cin >> n;
cout <<"\n Enter Power = ";
cin >> p;
cout <<endl;
if (p==0)
{ a=1;
}
while (p>0)
{
a=a*n;
p--;
}
cout <<" Answer Is = " << a;
return 0;
}
int main()
{
long int n=0;
long int p;
long int a=1;
cout <<"Enter The Number Whose Power You Want To CAlculate = ";
cin >> n;
cout <<"\n Enter Power = ";
cin >> p;
cout <<endl;
if (p==0)
{ a=1;
}
while (p>0)
{
a=a*n;
p--;
}
cout <<" Answer Is = " << a;
return 0;
}