Correct word in code explanation (#36146)
This commit is contained in:
@ -62,7 +62,7 @@ As you get the next odd one, don't forget to add it to a global variable that ca
|
|||||||
|
|
||||||
* Create a variable to keep record of the current and previous numbers along with the result that will be returned.
|
* Create a variable to keep record of the current and previous numbers along with the result that will be returned.
|
||||||
* Use a while loop to make sure we do not go over the number given as parameter.
|
* Use a while loop to make sure we do not go over the number given as parameter.
|
||||||
* We use the modulo operand to check if the current number is odd or even. If it is even, add it to the result.
|
* We use the modulo operand to check if the current number is odd or even. If it is odd, add it to the result.
|
||||||
* Complete the Fibonacci circle by rotating getting the next number and swapping values after.
|
* Complete the Fibonacci circle by rotating getting the next number and swapping values after.
|
||||||
* Return the result.
|
* Return the result.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user