The Power of a Number

In this lesson, we will 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 will be multiplied by itself. It is written as a small, superscript number to the right of 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 demonstrates this concept further.

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