eolymp
bolt
Try our new interface for solving problems
Məsələlər

Fibonaççi ardıcıllığı

dərc olunub 13.11.22 07:42:32

Eyni meseleni 1000 defe verirler

dərc olunub 22.01.24 15:54:37

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