Submission
Status:
PPPPP-----
Subtask/Task Score:
50/100
Score: 50
User: maxprogoji
Problemset: อนุกรม
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-05 11:31:46
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int c1 = 1;
int c2 = 0;
int c3;
for(int i = 0; i < n; i++){
c3 = c1 + c2;
c1 = c2;
c2 = c3;
}
cout << c3;
}