Guest User

Untitled

a guest
Jun 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public int fib(int n)
  2. {
  3. if (n == 0 || n == 1)
  4. {
  5. return n;
  6. }
  7. else
  8. {
  9. return fib(n - 1) + fib(n - 2);
  10. }
  11. }
Add Comment
Please, Sign In to add comment