#include <cmath> //library for the function
pow(x,y);
Given two numbers base (x) and exponent (y), pow() function finds x raised to the power of y.
//* exponent or power of x using loop
#include <bits/stdc++.h>
using namespace std;
int main()
{
int x = 1, power = 0, temp = 0;
cin >> x >> power;
temp = x;
for (int i = 1; i < power; i++)
{
x *= temp;
}
cout << x << endl;
return 0;
}