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
alm7ly
Ss
scope new delete
SubprogramModificat
poprawione_i_podzielone_1
cp.cpp
Vector+-OpLoad
Karibu
Hi
BoauthCPP