Feedback for these lessons is very much welcome. If you like or hate something about a lesson let us know, either on GitHub, via Mail or just tell us in person ;)
x
The rabbit problem
Write a program, that prints the nth fibonacci number.
- A fibonacci number is the sum of its two predecessors in the fibonacci sequence
- The fibonacci sequence starts with 0,1,…
Experts: Also calculate the sum of all fibonacci numbers <= n
###Hints###
One variable is not enough to store all the information you need to calculate the next fibonacci number.
##Solution##