打表 Generator: #include<stdio.h> int f[47]={0,1,1,2,3,5}; int main(){ printf("f[47]={0,1,1,2,3,5,"); for(int i=6;i<=45;i++) f[i]=f[i-1]+f[i-2],printf("%d,",f[i]); printf("%d};",f[45]+f[44]); } Output: f[47]={0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,1094...