[此贴子已经被作者于2007-11-18 16:02:23编辑过]
#include<stdio.h>{int temp1=0,temp2=1,result=1,i;printf("%d ",result);for(i=2;i<=10;i++) { result=temp1+temp2; temp1=temp2; temp2=result; printf("%d ",result); }
}
#include<stdio.h>{int temp1=0,temp2=1,result=1,i;printf("%d ",result);for(i=2;i<=10;i++){ result=temp1+temp2; temp1=temp2; temp2=result; printf("%d ",result);}
你的main()没写出来