mirror of https://github.com/01-edu/public.git
Rephrase the explanation for iterative and recursive power exercise
This commit is contained in:
parent
fef1a4849b
commit
8f18512562
|
@ -2,7 +2,7 @@
|
|||
|
||||
### Instructions
|
||||
|
||||
Write an **iterative** function that returns the power of the `int` passed as parameter.
|
||||
Write an **iterative** function that returns the value of `nb` to the power of `power`.
|
||||
|
||||
Negative powers will return `0`. Overflows do **not** have to be dealt with.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
### Instructions
|
||||
|
||||
Write an **recursive** function that returns the power of the `int` passed as parameter.
|
||||
Write a **recursive** function that returns the the value of `nb` to the power `power`.
|
||||
|
||||
Negative powers will return `0`. Overflows do **not** have to be dealt with.
|
||||
|
||||
|
|
Loading…
Reference in New Issue