Đăng nhập để hỏi chi tiết


Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <iostream>
#define ll long long
using namespace std;
ll fibo(int n) {
if (n==1 || n==2) return 1;
return fibo(n-1)+fibo(n-2);
}
int main() {
int n;
cin >> n;
while (n--) {
int t;
cin >> t;
cout << fibo(t) << endl;
}
}
Hãy giúp mọi người biết câu trả lời này thế nào?

Bảng tin