Back
Fibonacci_De_Quy.cpp
Save
// Fibonacci_De_Quy.cpp #include
using namespace std; int f(int n) { if (n < 3) return 1; return f(n - 1) + f(n - 2); } int main() { int n; cout << "Nhap n: "; cin >> n; cout << "Ket qua: " << f(n); return 0; }