标签:printf pre bsp log style return print main for
1 #include<stdio.h> 2 int main() 3 { 4 int a[20]; 5 int i; 6 a[0]=1;a[1]=1;a[2]=2; 7 printf("%d %d %d ",a[0],a[1],a[2]); 8 for(i=3;i<20;i++) 9 { 10 a[i]=a[i-1]+a[i-2]+a[i-3]; 11 printf("%d ",a[i]); 12 } 13 printf("\n"); 14 return 0; 15 }
1 1 2 4 7 13 24 44 81 149 274 504 927 1705 3136 5768 10609 19513 35890 66012
标签:printf pre bsp log style return print main for
原文地址:http://www.cnblogs.com/Bird-Xu/p/6503134.html