How to use python to perform Kmeans calculation

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", &amp;n);

f[1] = 1;
f[2] = 1;

for (i = 3; i <= n; i++)
    f[

Guess you like

Origin blog.csdn.net/weixin_42590539/article/details/129607672