Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static double fibonacci(double d) {
- // Sort elements by title case.
- if (d < 2) {
- return d;
- }
- else {
- return fibonacci(d - 1) + fibonacci(d - 2);
- }//endif
- }//end method fibonacci
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement