Fib Hard
Created on Dec. 8, 2024 by Julien Palard
Redact a program accepting an integer n and printing the result of fib(n).
fib implements Fibonacci
sequence with:
fib(0) == 1 and fib(1) == 1.
So I want:
$ ./fib 0
1
$ ./fib 1
1
$ ./fib 2
2
$ ./fib 3
3
$ ./fib 4
5
$ ./fib 5
8
$ ./fib 6
13
$ ./fib 7
21
and so on.
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts:
- Ctrl-Enter: Send your code to the correction bot.
- Escape: Get back to the instructions tab.