Submission

Status:

PPPPP-----

Subtask/Task Score:

50/100

Score: 50

User: lingusso

Problemset: อนุกรม

Language: c

Time: 0.003 second

Submitted On: 2025-09-30 20:33:06

#include<stdio.h>

int main(){
	int n;
	scanf("%d" ,&n);
	int f1 = 1,f2 = 1,swp;
	for(int i = 2;i<n;i++){
		swp = f1 + f2;
		f1 = f2;
		f2 = swp;
		
	}
	printf("%d" ,f2);
}