Recursive Exponentiation: pow(x, n)

Recursively compute xn — even for negative powers.

Problem Description:

Power any number like a pro! This interactive tool lets you compute xn using a clean recursive algorithm — even handles negative exponents and zero edge cases.

Example: 23 = 8

Example: 2-2 = 0.25

Try it Yourself: