Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fb_series
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]){ System.out.println(fibonicci(5)); } public static int fibonicci(int i){ if(i<=2) return 1; else return fibonicci(i-1)+fibonicci(i-2); } }
run
|
edit
|
history
|
help
0
Airbnb-QueueLinkedList-2/3
do whilee
Write a program to sort the odd elements descending order and even elements in ascending order
rd dap da
Relation
th
Neeraj
1
ZonedDateTime testing
Binary Tree Max path Sum