1 2 4 7 11 16...规律是想邻之差是1234。。。求次数中大于6000的最小规律数?
1 2 4 7 11 16...规律是想邻之差是1234。。。求次数中大于6000的最小规律数?
#include <stdio.h>
int main(void){
unsigned int _1st,_2nd,i=1;
for(_1st=1;_1st<=6000;i++){
printf("%4u ",_1st);
if(i%10==0)
putchar('\n');
_2nd=_1st+i;
_1st=_2nd;
}
printf("i=%u\n",i);
return 0;
}