10 lines
155 B
C++
10 lines
155 B
C++
#include <bits/stdc++.h>
|
|
|
|
int fibo(int n) {
|
|
if (n <= 1) return n;
|
|
return fibo(n - 1) + fibo(n - 2);
|
|
}
|
|
|
|
int main() {
|
|
cout << fibo(5) << endl;
|
|
} |