Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
i was not clear on how to find the powerN using recursion? please advise
Given base and n that are both 1 or more, compute recursively (no loops) the value of base to the n power, so powerN(3, 2) is 9 (3 squared).
powerN(3, 1) → 3
powerN(3, 2) → 9
powerN(3, 3) → 27
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.