Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fb_series
#include <iostream> using namespace std; int fib(int n) { if (n<=1) { return n; } return fib(n-1)+fib(n-2); } int main () { int n; cout<<"Enter a number : "<<endl; cin>>n; int sum=fib(n); cout<<"Element at position "<<n<<" is : "<<sum<<endl; system("pause"); }
run
|
edit
|
history
|
help
0
Test 13(2020)
Even Odd using Functions
<string> Indirect include of <errno.h> with gcc
Treap (making range queries(that are not possible on seg_Trees) possible with no effort) : (863D)
IndiSort
static property
pranav pandey
CodeChef P2 - FIZZA
Sort 0's 1's 2's
11aa11