第四章例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-03 09:28  wuyanlong  阅读(101)  评论(0编辑  收藏  举报