Submission
Status:
PPPPP-----
Subtask/Task Score:
50/100
Score: 50
User: Darleneee93
Problemset: อนุกรม
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-07 09:56:34
#include <bits/stdc++.h>
using namespace std;
int main(){
int num;
cin >> num;
int a=0 ,b=1;
int c;
if (num > 90){
return 1;
}
for (int i=1;i < num;i++){
c=a+b;
a=b;
b=c;
}
cout << c << endl;
}