4-11

#include<stdio.h>

int main(void)

{

         int i,x1,x2,x;

 

         x1=1;

         x2=1;

         printf("%6d%6d",x1,x2);

         for(i=1;i<=8;i++){

                   x=x1+x2;

                   printf("%6d",x);

                   x1=x2;

                   x2=x;

         }

         printf("\n");

 

         return 0;

 

}

posted @ 2013-10-04 18:39  zhaoyang16  阅读(107)  评论(0编辑  收藏  举报