Advertisement
hackmate

Untitled

May 17th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. public static int fibonacci(int n) {
  2. return n<2? n : fibonacci(n - 1) + fibonacci(n - 2);
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement