What method?

Report a typo

We want to write a function that raises the power of a number to an integer number and here is a simple solution:

function power(x, n):
    if n = 0 then
        return 1
    return x * power(x, n-1)

Please select the option appropriate to the program.

Select one option from the list
___

Create a free account to access the full topic