The built-in Math.Pow() function in .NET raises a double base to a double exponent and returns a double result.
Math.Pow()
double
W
For a short quick one-liner.
int pow(int i, int exp) => (exp == 0) ? 1 : i * pow(i, exp-1);
There are no negative exponent nor overflow checks.