Advertisement
FAMDS

QUESTÃO17

Sep 19th, 2019 (edited)
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.09 KB | None | 0 0
  1. int fibonacci(int n) {
  2. if(n < 2) {
  3. return 1;
  4. }
  5. return fibonacci(n - 1) + fibonacci(n - 2);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement