Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. public int fib(int n) {
  2. if(n <= 1) {
  3. return n;
  4. } else {
  5. return fib(n - 1) + fib(n - 2);
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement