Power of a Number

In this lesson, we'll learn how to find the power of a number using recursion.

What does “Power of a Number” mean?

The power (or exponent) aa, of a number xx, represents the number of times xx needs to be multiplied by itself.

xx to the power aa is the product of xx with itself aa times!

It’s written as a small number to the right and above the base number.

For example, if the base number is 22 and the exponent value is 33, we represent this as follows:

23=82^3 = 8

The following illustration explains the concept:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.