|
板凳
楼主 |
发表于 2018-1-27 20:05:49
|
只看该作者
我这人有点笨 我想用这个斐波那契数列的
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a[48];
int b;
int c;
int d;
int e;
int f;
int g;
a[c]=a[b]=a[d]=0;
for(b=0;b<48;b++)
{
c=b+1;
d=c+1;
e=a[b];
f=a[c];
g=a[d];
g=e+f;
}
for(b=2;b<50;b++)
{
printf("%d",b);
}
system("pause");
return 0;
}
|
|