for(;x<max;) { x=x+y; y=x-y; printf("%d ",x); }
#include <stdio.h> int main(void) { int n,x=1,y=1,max; scanf("%d",&max); printf("%d %d ",x,y); for(;x<max;) { n=x y=x; x=n+y; printf("%d ",x); } return 0; }