eolymp
bolt
Try our new interface for solving problems
Problems

Fibonacci Sequence

published at 11/13/22, 7:42:32 am

Eyni meseleni 1000 defe verirler

published at 1/22/24, 3:54:37 pm

include <bits/stdc++.h>

define ll long long

using namespace std; ll f(ll n){ if(n==0){ return 0; } else if(n==1){ return 1; } else { return f(n-1)+f(n-2); } } int main() { ll n; cin>>n; cout<<f(n); } napim easey siadd