Great article, thanks!
I think it could've been a good opportunity to also demonstrate using functions and returning a val from them, especially for fib which is usually done recursively.
Also it might've been a better practice to first break out of the input loop before looping to get the fib value.
A recursive function would have made sense for the Fibonacci sequence, I wanted to play with loops as that's what the lesson seemed to hunt towards but you're absolutely right.
Though remember my solutions are not the definitive answer just the way I happened to solve the problem ☺️
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article, thanks!
I think it could've been a good opportunity to also demonstrate using functions and returning a val from them, especially for fib which is usually done recursively.
Also it might've been a better practice to first break out of the input loop before looping to get the fib value.
A recursive function would have made sense for the Fibonacci sequence, I wanted to play with loops as that's what the lesson seemed to hunt towards but you're absolutely right.
Though remember my solutions are not the definitive answer just the way I happened to solve the problem ☺️