标签:技术分享 .com math.h 结果 ges ++ img for image
#include<stdio.h>
#include<math.h>
//Fibonacai数列
void main()
{
int a[20];
a[1] = a[2] = 1;
printf("the number of Fibonacai is:\n");
for (int i = 3; i<20; i++)
{
a[i] = a[i - 1] + a[i - 2];
printf("%ld\n", a[i]);
}
while (1);
}
结果:
标签:技术分享 .com math.h 结果 ges ++ img for image
原文地址:http://www.cnblogs.com/panyani-532355476/p/7800999.html