Guest User

Untitled

a guest
May 17th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. static int fib(int n){
  2. if (n <= 1)
  3. return n;
  4.  
  5. return fib(n-1) + fib(n-2);
  6. }
Add Comment
Please, Sign In to add comment