Advertisement
gravitybone

Untitled

Nov 20th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. unsigned long long fibonacciRecursive(int n) {
  2.     if (n == 0)
  3.     {
  4.         return 0;
  5.     }
  6.     if (n == 1)
  7.     {
  8.         return 1;
  9.     }
  10.     return fibonacciRecursive(n-1)+fibonacciRecursive(n-2);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement