The Fibonacci sequence is a sequence of numbers in which each number is the sum of the two preceding numbers. Its general formula is:
F(n) = F(n-1) + F(n-2) (n ≥ 3,F(1) = 1,F(2) = 1)
The following is a program example to implement the Fibonacci sequence in C language:
``` #include <stdio.h>
int main() { int n, i; long long f[100];
printf("请输入斐波那契数列的项数:");
scanf("%d", &n);
f[1] = 1;
f[2] = 1;
for (i = 3; i <= n; i++)
f[