Login or Create an Account to view the mark scheme, comment, and add to a test
Construct a recursive algorithm called power(b, exp) to return the given base b taken to the power of the exponent exp. Both b and exp are positive integers. For example, the following code will result in X equal to 32:
[3]X = power(2,5)
Short Answer3 MarksPremium
8 Uses16 Views0 Likes