Power Function Recursive

C Easy 3 views
Back to Questions
Next Prime Checker Library Easy N

Problem Description

Create a recursive function to calculate x^n. If n is negative, return 1/x^|n|. If n=0, return 1. Track the depth of the recursion.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next