Guest User

Untitled

a guest
Nov 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. int fib(int x) {
  2. if (x == 0)
  3. return 0;
  4.  
  5. if (x == 1)
  6. return 1;
  7.  
  8. return fib(x-1) + fib(x-2);
  9. }
Add Comment
Please, Sign In to add comment