Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int fibonacchi(int n);
- int main()
- {
- printf("%d\n", fibonacchi(7));
- return 0;
- }
- int fibonacchi(int n)
- {
- if(n <= 2)
- return 1;
- else
- return fibonacchi(n - 1) + fibonacchi(n - 2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement