#include<iostream>
using namespace std;

// Comments hopefully will be added later

float power(float x, int n);

int main()
{
 float number;  int exponent;

 cout << "Enter number: ";
 cin >> number;
 cout << "Enter exponent: ";
 cin >> exponent;

 cout << number << " to the " << exponent
      << "th power is " << power(number,exponent)
      << endl;

 return 0;
}

float power(float x, int n)
{
 float product=1;

 for(int i=0; i<n; i++)
   product *= x;

 return product;
}